Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Desktop Environments
  • Search

I hate evdev

Problems with GUI applications? Questions about X, KDE, Gnome, Fluxbox, etc.? Come on in. NOTE: For multimedia, go up one forum
Post Reply
Advanced search
42 posts
  • 1
  • 2
  • Next
Author
Message
curmudgeon
Veteran
Veteran
Posts: 1746
Joined: Fri Aug 08, 2003 1:39 pm

I hate evdev

  • Quote

Post by curmudgeon » Sun May 24, 2009 1:03 pm

I can't believe that anyone though it was a good idea.

Following the upgrade guide at:

http://www.gentoo.org/proj/en/desktop/x ... -guide.xml

"For example, if you just want a basic configuration for a non-US keyboard layout, copy the content of /usr/share/doc/hal-*/use-estonian-layout.fdi.bz2 into /etc/hal/fdi/policy/10-xinput-configuration.fdi (using bzcat) and edit it to match the keyboard layout you wish to use."

OK.

Code: Select all

$ dog /etc/hal/fdi/policy/10-xinput-configuration.fdi
<?xml version="1.0" encoding="UTF-8"?>
<!--
Section "InputDevice"
    Driver "evdev"
    Option "XkbLayout" "dvorak"
EndSection
-->
<deviceinfo version="0.2">
    <match key="info.capabilities" contains="input.keyboard">
        <merge key="input.x11_options.XkbLayout" type="string">dvorak</merge>
    </match>
</deviceinfo>
This actually works on one machine, but on another:

Code: Select all

(II) config/hal: Adding input device CHICONY Compaq USB Keyboard
(**) CHICONY Compaq USB Keyboard: always reports core events
(**) CHICONY Compaq USB Keyboard: Device: "/dev/input/event4"
(II) CHICONY Compaq USB Keyboard: Found keys
(II) CHICONY Compaq USB Keyboard: Configuring as keyboard
(II) XINPUT: Adding extended input device "CHICONY Compaq USB Keyboard" (type: KEYBOARD)
(**) Option "xkb_rules" "evdev"
(**) Option "xkb_model" "evdev"
(**) Option "xkb_layout" "us"
(II) config/hal: Adding input device CHICONY Compaq USB Keyboard
(**) CHICONY Compaq USB Keyboard: always reports core events
(**) CHICONY Compaq USB Keyboard: Device: "/dev/input/event3"
(II) CHICONY Compaq USB Keyboard: Found keys
(II) CHICONY Compaq USB Keyboard: Configuring as keyboard
(II) XINPUT: Adding extended input device "CHICONY Compaq USB Keyboard" (type: KEYBOARD)
(**) Option "xkb_rules" "evdev"
(**) Option "xkb_model" "evdev"
(**) Option "xkb_layout" "us"
No, I don't know why it appears twice.
Top
VoidMage
Watchman
Watchman
User avatar
Posts: 6196
Joined: Sat Oct 14, 2006 8:43 am

  • Quote

Post by VoidMage » Sun May 24, 2009 4:53 pm

Most probably it should not work -
dvorak is a variant, not a layout.
Top
curmudgeon
Veteran
Veteran
Posts: 1746
Joined: Fri Aug 08, 2003 1:39 pm

  • Quote

Post by curmudgeon » Sun May 24, 2009 9:33 pm

It works on my other machine.

I think the problem is coming from the fact that the keyboard gets "seen" multiple times, but I have no idea about how to fix it.

It was so easy to configure the old way. :(
Top
d2_racing
Bodhisattva
Bodhisattva
User avatar
Posts: 13047
Joined: Mon Apr 25, 2005 2:25 pm
Location: Ste-Foy,Canada
Contact:
Contact d2_racing
Website

  • Quote

Post by d2_racing » Mon May 25, 2009 12:15 am

Hi, can you post this :

Code: Select all

# cat /etc/X11/xorg.conf
Also, did you try to startx with any xorg.conf ?
Top
Nerevar
l33t
l33t
User avatar
Posts: 720
Joined: Sat May 31, 2008 7:35 pm

  • Quote

Post by Nerevar » Mon May 25, 2009 1:20 am

Does 'lsusb' see the keyboard twice? I'm thinking your problem may lie at a lower level than Xorg.
Top
curmudgeon
Veteran
Veteran
Posts: 1746
Joined: Fri Aug 08, 2003 1:39 pm

  • Quote

Post by curmudgeon » Mon May 25, 2009 3:27 am

d2_racing wrote:Hi, can you post this :

Code: Select all

# cat /etc/X11/xorg.conf
Also, did you try to startx with any xorg.conf ?
I am running without one. I can not get xorg to start with any xorg.conf.

For example:

Code: Select all

Section "ServerFlags"
    Option      "AutoAddDevices"    "false"
EndSection

Section "ServerLayout"
    Identifier  "X.org Configured"
    InputDevice "Keyboard0" "CoreKeyboard"
    InputDevice "Mouse0"    "CorePointer"
EndSection

Section "Files"
    FontPath    "/usr/share/fonts/misc/"
    FontPath    "/usr/share/fonts/75dpi/"
    FontPath    "/usr/share/fonts/100dpi/"
    FontPath    "/usr/share/fonts/default/ghostscript/"
    FontPath    "/usr/share/fonts/Type1/"
    FontPath    "/usr/share/fonts/ttf-bitstream-vera/"
EndSection

Section "InputDevice"
    Identifier  "Keyboard0"
    Driver      "kbd"
    Option      "XkbLayout" "dvorak"
EndSection

Section "InputDevice"
    Identifier  "Mouse0"
    Driver      "mouse"
    Option      "Protocol"      "auto"
    Option      "Device"        "/dev/input/mice"
EndSection
produces

Code: Select all

X.Org X Server 1.5.3
Release Date: 5 November 2008
X Protocol Version 11, Revision 0
Build Operating System: Linux 2.6.28-gentoo-r5 i686
Current Operating System: Linux system 2.6.27-gentoo-r10 #1 Sun May 24 11:46:40 UTC 2009 i686
Build Date: 24 May 2009  07:32:36AM

        Before reporting problems, check http://wiki.x.org
        to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
        (++) from command line, (!!) notice, (II) informational,
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.0.log", Time: Mon May 25 03:21:53 2009
(==) Using config file: "/etc/X11/xorg.conf"
(==) ServerLayout "X.org Configured"
(**) |-->Input Device "Keyboard0"
(**) |-->Input Device "Mouse0"
(**) Option "AutoAddDevices" "false"
(**) Not automatically adding devices
(==) Automatically enabling devices
(WW) The directory "/usr/share/fonts/TTF/" does not exist.
        Entry deleted from font path.
(WW) The directory "/usr/share/fonts/OTF" does not exist.
        Entry deleted from font path.
(**) FontPath set to:
        /usr/share/fonts/misc/,
        /usr/share/fonts/75dpi/,
        /usr/share/fonts/100dpi/,
        /usr/share/fonts/default/ghostscript/,
        /usr/share/fonts/Type1/,
        /usr/share/fonts/ttf-bitstream-vera/,
        /usr/share/fonts/misc/,
        /usr/share/fonts/Type1/,
        /usr/share/fonts/100dpi/,
        /usr/share/fonts/75dpi/,
        built-ins
(==) ModulePath set to "/usr/lib/xorg/modules"
(WW) Open ACPI failed (/var/run/acpid.socket) (No such file or directory)
(II) No APM support in BIOS or kernel
(II) Loader magic: 0x9a0
(II) Module ABI versions:
        X.Org ANSI C Emulation: 0.4
        X.Org Video Driver: 4.1
        X.Org XInput driver : 2.1
        X.Org Server Extension : 1.1
(II) Loader running on linux
(++) using VT number 7

(--) PCI:*(0@0:2:0) Intel Corporation 82845G/GL[Brookdale-G]/GE Chipset Integrated Graphics Device rev 1, Mem @ 0xf0000000/0, 0xf8400000/0
(II) System resource ranges:
        [0] -1  0       0xffffffff - 0xffffffff (0x1) MX[B]
        [1] -1  0       0x000f0000 - 0x000fffff (0x10000) MX[B]
        [2] -1  0       0x000c0000 - 0x000effff (0x30000) MX[B]
        [3] -1  0       0x00000000 - 0x0009ffff (0xa0000) MX[B]
        [4] -1  0       0x0000ffff - 0x0000ffff (0x1) IX[B]
        [5] -1  0       0x00000000 - 0x00000000 (0x1) IX[B]
(II) LoadModule: "extmod"

(II) Loading /usr/lib/xorg/modules/extensions//libextmod.so
(II) Module extmod: vendor="X.Org Foundation"
        compiled for 1.5.3, module version = 1.0.0
        Module class: X.Org Server Extension
        ABI class: X.Org Server Extension, version 1.1
(II) Loading extension SHAPE
(II) Loading extension MIT-SUNDRY-NONSTANDARD
(II) Loading extension BIG-REQUESTS
(II) Loading extension SYNC
(II) Loading extension MIT-SCREEN-SAVER
(II) Loading extension XC-MISC
(II) Loading extension XFree86-VidModeExtension
(II) Loading extension XFree86-Misc
(II) Loading extension XFree86-DGA
(II) Loading extension DPMS
(II) Loading extension TOG-CUP
(II) Loading extension Extended-Visual-Information
(II) Loading extension XVideo
(II) Loading extension XVideo-MotionCompensation
(II) Loading extension X-Resource
(II) LoadModule: "dbe"

(II) Loading /usr/lib/xorg/modules/extensions//libdbe.so
(II) Module dbe: vendor="X.Org Foundation"
        compiled for 1.5.3, module version = 1.0.0
        Module class: X.Org Server Extension
        ABI class: X.Org Server Extension, version 1.1
(II) Loading extension DOUBLE-BUFFER
(II) LoadModule: "glx"

(II) Loading /usr/lib/xorg/modules/extensions//libglx.so
(II) Module glx: vendor="X.Org Foundation"
        compiled for 1.5.3, module version = 1.0.0
        ABI class: X.Org Server Extension, version 1.1
(==) AIGLX enabled
(==) Exporting typical set of GLX visuals
(II) Loading extension GLX
(II) LoadModule: "record"

(II) Loading /usr/lib/xorg/modules/extensions//librecord.so
(II) Module record: vendor="X.Org Foundation"
        compiled for 1.5.3, module version = 1.13.0
        Module class: X.Org Server Extension
        ABI class: X.Org Server Extension, version 1.1
(II) Loading extension RECORD
(II) LoadModule: "dri"

(II) Loading /usr/lib/xorg/modules/extensions//libdri.so
(II) Module dri: vendor="X.Org Foundation"
        compiled for 1.5.3, module version = 1.0.0
        ABI class: X.Org Server Extension, version 1.1
(II) Loading extension XFree86-DRI

Backtrace:
0: /usr/bin/X(xorg_backtrace+0x37) [0x812917f]

Fatal server error:
Caught signal 11.  Server aborting
No, lsusb only sees the keyboard once. It appears twice in Xorg.0.log (when run without a config file).
Top
Nerevar
l33t
l33t
User avatar
Posts: 720
Joined: Sat May 31, 2008 7:35 pm

  • Quote

Post by Nerevar » Mon May 25, 2009 9:08 am

See the dvorak section here:
https://wiki.ubuntu.com/X/Config/Input
Top
d2_racing
Bodhisattva
Bodhisattva
User avatar
Posts: 13047
Joined: Mon Apr 25, 2005 2:25 pm
Location: Ste-Foy,Canada
Contact:
Contact d2_racing
Website

  • Quote

Post by d2_racing » Mon May 25, 2009 10:55 am

Code: Select all

Ok, I see now, can you post this :

Code: Select all

# emerge --info
# emerge -pv xorg-server
Also, your /etc/X11/xorg.conf should be like this actually :

Code: Select all

Section "ServerLayout"
    Identifier     "Layout0"
    Screen      0  "Screen0"
EndSection

Section "Monitor"
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "Unknown"
    Option         "DPMS"
EndSection

Section "Device"
    Identifier     "Device0"
    Driver         "YOUR_VIDEO_DRIVER_HERE"
EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection
You cannot use the old method with the new evdev,hal and dbus combo.
Top
d2_racing
Bodhisattva
Bodhisattva
User avatar
Posts: 13047
Joined: Mon Apr 25, 2005 2:25 pm
Location: Ste-Foy,Canada
Contact:
Contact d2_racing
Website

  • Quote

Post by d2_racing » Mon May 25, 2009 10:56 am

What video driver do you use actually ?
Top
curmudgeon
Veteran
Veteran
Posts: 1746
Joined: Fri Aug 08, 2003 1:39 pm

  • Quote

Post by curmudgeon » Mon May 25, 2009 1:28 pm

d2_racing wrote:

Code: Select all

Ok, I see now, can you post this :

Code: Select all

# emerge --info
# emerge -pv xorg-server

Code: Select all

$ emerge --info
Portage 2.1.6.11 (default/linux/x86/2008.0/desktop, gcc-4.3.2, glibc-2.8_p20080602-r1, 2.6.27-gentoo-r10 i686)
=================================================================
System uname: Linux-2.6.27-gentoo-r10-i686-Intel-R-_Pentium-R-_4_CPU_1.70GHz-with-glibc2.0
Timestamp of tree: Sun, 24 May 2009 06:00:04 +0000
app-shells/bash:     3.2_p39
dev-java/java-config: 1.3.7, 2.1.7
dev-lang/python:     2.4.4-r6, 2.5.4-r2
dev-python/pycrypto: 2.0.1-r8
dev-util/cmake:      2.6.2-r1
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.13, 2.63
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium4 -O2 -pipe -fomit-frame-pointer -mfpmath=sse"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=pentium4 -O2 -pipe -fomit-frame-pointer -mfpmath=sse"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps y"
FEATURES="distlocks fixpackages protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://www.ibiblio.org/pub/Linux/distributions/gentoo"
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac aalib acpi alsa arts audiofile berkdb bzip2 cairo caps cdparanoia cdr cjk cracklib crypt css cups dbus dga dhcp directfb dri dvd dvdread encode exif expat fam fbcon ffmpeg flac gcj ggi gif glibc-omitfp gmp gphoto2 gpm gstreamer hal hardcoded-tables iconv idea imagemagick imap imlib ipv6 jabber javascript jbig joystick jpeg kde lcms libcaca libnotify libwww live lm_sensors mad matroska mbox memlimit midi mmx mmxext mng mp3 mpeg mudflap mysql nas ncurses network nls no-old-linux nodrm nptl nptlonly ogg opengl openmp oscar pcre pdf perl png quicktime readline rtc scanner sdl sensord silc smtp sndfile speex spell sse sse2 ssl svg sysfs tcpd theora threads threadsafe tiff timidity truet
ype unicode usb userlocales utf8 vcd vorbis win32codecs x86 xinerama xml xorg xulrunner xv xvid yahoo zlib zrtp" ALSA_CARDS="intel8x0" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file au
thz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CAMERAS="ptp2" ELIBC="glibc" INPUT_DEVICES="evdev keyboard mouse" KERNEL="linux" USERLAND="GNU" VIDEO_CARDS="intel"
Unset:  CPPFLAGS, CTARGET, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTDIR_OVERLAY, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS


$ emerge -pv xorg-server

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ] x11-base/xorg-server-1.5.3-r6  USE="hal ipv6 nptl sdl xorg -3dfx -debug -dmx -kdrive -minimal -tslib" INPUT_DEVICES="evdev ke
yboard mouse -acecad -aiptek -calcomp -citron -digitaledge -dmc -dynapro -elo2300 -elographics -fpit -hyperpen -jamstudio -joystick -magellan -microtouch -mutouch -palmax -penmount -spaceorb -summa -synaptics -tek4957 -tslib -ur98 -virtualbox -vmmouse -void -wacom" VIDEO_CARDS="intel -apm -ark -ast -chips -cirrus -dummy -epson -fbdev -fglrx -geode -glint -i128 -i740 (-impact) -imstt -mach64 -mga -neomagic (-newport) -nv -nvidia -r128 -radeon -radeonhd -rendition -s3 -s3virge -savage -siliconmotion -sis -sisusb (-sunbw2) (-suncg14) (-suncg3) (-suncg6) (-sunffb) (-sunleo) (-suntcx) -tdfx -tga -trident -tseng -v4l -vermilion -vesa -via -virtualbox -vmware -voodoo -xgi" 0 kB

Total: 1 package (1 reinstall), Size of downloads: 0 kB
d2_racing wrote:You cannot use the old method with the new evdev,hal and dbus combo.
At the moment, I would happily consign the new evdev, hal, and dbus combo to the wastebasket and go back to the old method.
d2_racing wrote:What video driver do you use actually ?
The cursed intel driver (the users of which all seem to have been thrown under the bus for some reason).

I have been searching far and wide for any version that will work at all. I currently have version 2.7.1 installed.
Last edited by curmudgeon on Tue May 26, 2009 4:28 am, edited 1 time in total.
Top
Nerevar
l33t
l33t
User avatar
Posts: 720
Joined: Sat May 31, 2008 7:35 pm

  • Quote

Post by Nerevar » Mon May 25, 2009 3:27 pm

curmudgeon wrote:At the moment, I would happily consign the new evdev, hal, and dbus combo to the wastebasket and go back to the old method.
I was using the old kbd/mouse drivers with 1.5.3 for awhile until I decided to take the time to learn about evdev/hal/dbus. I found that the following two flags were needed:

Code: Select all

Section "ServerFlags"
    Option      "AllowEmptyInput" "false"
    Option      "AutoAddDevices"  "false"
EndSection
Top
curmudgeon
Veteran
Veteran
Posts: 1746
Joined: Fri Aug 08, 2003 1:39 pm

  • Quote

Post by curmudgeon » Mon May 25, 2009 3:53 pm

Nerevar wrote:
curmudgeon wrote:At the moment, I would happily consign the new evdev, hal, and dbus combo to the wastebasket and go back to the old method.
I was using the old kbd/mouse drivers with 1.5.3 for awhile until I decided to take the time to learn about evdev/hal/dbus. I found that the following two flags were needed:

Code: Select all

Section "ServerFlags"
    Option      "AllowEmptyInput" "false"
    Option      "AutoAddDevices"  "false"
EndSection
I tried that (at least the second one of those). I have never been able to start xorg-server with any configuration file (it sometimes starts with no configuration file).
Top
d2_racing
Bodhisattva
Bodhisattva
User avatar
Posts: 13047
Joined: Mon Apr 25, 2005 2:25 pm
Location: Ste-Foy,Canada
Contact:
Contact d2_racing
Website

  • Quote

Post by d2_racing » Mon May 25, 2009 3:58 pm

Hi, can you post this :

Code: Select all

# rc-update show
Also, can you try this /etc/X11/xorg.conf

Code: Select all

Section "ServerLayout" 
    Identifier     "Layout0" 
    Screen      0  "Screen0" 
EndSection 

Section "Monitor" 
    Identifier     "Monitor0" 
    VendorName     "Unknown" 
    ModelName      "Unknown" 
    Option         "DPMS" 
EndSection 

Section "Device" 
    Identifier     "Device0" 
    Driver         "intel" 
EndSection 

Section "Screen" 
    Identifier     "Screen0" 
    Device         "Device0" 
    Monitor        "Monitor0" 
    DefaultDepth    24 
    SubSection     "Display" 
        Depth       24 
    EndSubSection 
EndSection 
Top
curmudgeon
Veteran
Veteran
Posts: 1746
Joined: Fri Aug 08, 2003 1:39 pm

  • Quote

Post by curmudgeon » Tue May 26, 2009 4:28 am

d2_racing wrote:Hi, can you post this :

Code: Select all

# rc-update show
I won't have access to that machine for a day or so, but will get back to it (and do that) as soon as I can.

In the meantime, do you have any additional thoughts on my wireless issues (on a different machine)?:

http://forums.gentoo.org/viewtopic-p-5751065.html
Last edited by curmudgeon on Tue May 26, 2009 1:45 pm, edited 1 time in total.
Top
d2_racing
Bodhisattva
Bodhisattva
User avatar
Posts: 13047
Joined: Mon Apr 25, 2005 2:25 pm
Location: Ste-Foy,Canada
Contact:
Contact d2_racing
Website

  • Quote

Post by d2_racing » Tue May 26, 2009 11:56 am

No problem, we will wait for you :P
Top
curmudgeon
Veteran
Veteran
Posts: 1746
Joined: Fri Aug 08, 2003 1:39 pm

  • Quote

Post by curmudgeon » Sat Jun 06, 2009 7:57 pm

d2_racing wrote:Hi, can you post this :

Code: Select all

# rc-update show
Sorry this took so long. Due to a bit of an emergency, that machine got pressed into windoze service for the past couple of weeks. :(

Code: Select all

           alsasound |      default
            bootmisc | boot
             checkfs | boot
           checkroot | boot
               clock | boot
         consolefont | boot
                dbus |      default
                hald |      default
              hdparm |      default
            hostname | boot
             keymaps | boot
               local |      default nonetwork
          localmount | boot
             modules | boot
            net.eth0 |      default
              net.lo | boot
          ntp-client |      default
             numlock |      default
           rmnologin | boot
              smartd |      default
                sshd |      default
           syslog-ng |      default
             urandom | boot
          vixie-cron |      default
                 xdm |      default
d2_racing wrote:Also, can you try this /etc/X11/xorg.conf

Code: Select all

Section "ServerLayout" 
    Identifier     "Layout0" 
    Screen      0  "Screen0" 
EndSection 

Section "Monitor" 
    Identifier     "Monitor0" 
    VendorName     "Unknown" 
    ModelName      "Unknown" 
    Option         "DPMS" 
EndSection 

Section "Device" 
    Identifier     "Device0" 
    Driver         "intel" 
EndSection 

Section "Screen" 
    Identifier     "Screen0" 
    Device         "Device0" 
    Monitor        "Monitor0" 
    DefaultDepth    24 
    SubSection     "Display" 
        Depth       24 
    EndSubSection 
EndSection 
That (or something pretty close to it) actually booted.

And thank you Nerevar. I managed to get the dvorak layout working as well.

I still hate evdev, and have compiled upgrades to xorg-server-1.5.3-r6 on subsequent machines without evdev as an input device (which for some strange reason does require an "AllowEmptyInput" "Off" line to start).

Thanks again to everyone for their help.
Top
yabbadabbadont
Advocate
Advocate
User avatar
Posts: 4791
Joined: Fri Mar 14, 2003 12:02 am
Location: 2 exits past crazy

  • Quote

Post by yabbadabbadont » Sat Jun 06, 2009 9:28 pm

@curmudgeon: Off topic, but just an FYI. alsasound belongs in the boot runlevel, not default. Some people run into various sound related troubles when it is in the incorrect runlevel.
Bones McCracker wrote:On the other hand, regex is popular with the ladies.
Top
Will Scarlet
Apprentice
Apprentice
Posts: 239
Joined: Fri Mar 19, 2004 7:26 pm

  • Quote

Post by Will Scarlet » Thu Jun 11, 2009 10:06 pm

I found it difficult at first with the new setup. Although hopefully I won't have to go through another setup for awhile. For myself, the following files for hal keyboard setup and xorg.conf got me working fine:

Code: Select all

<deviceinfo version="0.2">
   <match key="info.capabilities" contains="input.keys">
      <merge key="input.x11_options.XkbLayout" type="string">en_US</merge>
   </match>
</deviceinfo>

Code: Select all

Section "Files"
    FontPath       "/usr/share/fonts/cyrillic"
    FontPath       "/usr/share/fonts/Speedo"
    FontPath       "/usr/share/fonts/corefonts"
    FontPath       "/usr/share/fonts/util"
    FontPath       "/usr/share/fonts/efont-unicode"
#    FontPath      "/usr/share/fonts/
#    FontPath      "/usr/share/fonts/
#    FontPath      "/usr/share/fonts/
EndSection


Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    Option         "XvmcUsesTextures" "true"
EndSection
Just in case if any one is wondering, that is my full xorg.conf file.

Anyway, if you notice, I changed input.keyboard to input.keys in 10-x11-input.fdi. I don't remember where I found this information, but I know it does work. I have a keyboard that is recognized as two input devices and a remote that is recognized as a keyboard.

Also, since you are listing you have a devorak keyboard you'll need to add this to the 10-x11-input.fdi file under the XkbLayout line:

Code: Select all

<merge key="input.xkb.variant" type="string">dvorak</merge>
And make sure you restart hald when you change any file involved with hal.

Here is the output from my Xorg.0.log:

Code: Select all

(II) XINPUT: Adding extended input device "ATI Remote Wonder II" (type: KEYBOARD)
(**) Option "xkb_rules" "evdev"
(**) Option "xkb_model" "evdev"
(**) Option "xkb_layout" "en_US"
(II) config/hal: Adding input device Razer Reclusa Keyboard
(**) Razer Reclusa Keyboard: always reports core events
(**) Razer Reclusa Keyboard: Device: "/dev/input/event8"
(II) Razer Reclusa Keyboard: Found 1 mouse buttons
(II) Razer Reclusa Keyboard: Found keys
(II) Razer Reclusa Keyboard: Configuring as keyboard
(**) Razer Reclusa Keyboard: YAxisMapping: buttons 4 and 5
(**) Razer Reclusa Keyboard: EmulateWheelButton: 4, EmulateWheelInertia: 10, EmulateWheelTimeout: 200
(II) XINPUT: Adding extended input device "Razer Reclusa Keyboard" (type: KEYBOARD)
(**) Option "xkb_rules" "evdev"
(**) Option "xkb_model" "evdev"
(**) Option "xkb_layout" "en_US"
(II) config/hal: Adding input device Razer Reclusa Keyboard
(**) Razer Reclusa Keyboard: always reports core events
(**) Razer Reclusa Keyboard: Device: "/dev/input/event7"
(II) Razer Reclusa Keyboard: Found keys
(II) Razer Reclusa Keyboard: Configuring as keyboard
(II) XINPUT: Adding extended input device "Razer Reclusa Keyboard" (type: KEYBOARD)
(**) Option "xkb_rules" "evdev"
(**) Option "xkb_model" "evdev"
(**) Option "xkb_layout" "en_US"
(II) config/hal: Adding input device Logitech USB Receiver
(**) Logitech USB Receiver: always reports core events
(**) Logitech USB Receiver: Device: "/dev/input/event6"
(II) Logitech USB Receiver: Found 1 mouse buttons
(II) Logitech USB Receiver: Found keys
(II) Logitech USB Receiver: Configuring as keyboard
(**) Logitech USB Receiver: YAxisMapping: buttons 4 and 5
(**) Logitech USB Receiver: EmulateWheelButton: 4, EmulateWheelInertia: 10, EmulateWheelTimeout: 200
(II) XINPUT: Adding extended input device "Logitech USB Receiver" (type: KEYBOARD)
(**) Option "xkb_rules" "evdev"
(**) Option "xkb_model" "evdev"
(**) Option "xkb_layout" "en_US"
I must say that now I like the new way with evdev. I still have more to learn about it, but it make setup easier once you get the hang of it.

Hope this helps... :wink:
Please add [solved] to the initial post's subject line if you feel your problem is resolved.
Top
EasterParade
l33t
l33t
User avatar
Posts: 938
Joined: Sat Jul 26, 2003 10:48 am

  • Quote

Post by EasterParade » Sat Jun 13, 2009 8:16 am

I` d like to give my two cents here although I don` t know if anyone needs them :wink: .

I` ve had my share of struggling with hal and evdev after the xorg-server update too but
after removing all input devices from xorg.conf and with this .fdi:

Code: Select all

<?xml version="1.0" encoding="UTF-8"?>
<!--
Section "InputDevice"
   Driver "kbd"

   Option "XkbModel" "pc105"
   Option "XkbLayout" "de"
   Option "XkbOptions" "nodeadkeys"
EndSection
-->
<deviceinfo version="0.2">
   <match key="info.capabilities" contains="input.keys">
      <!-- Option "XkbModel" "pc105" -->
      <merge key="input.xkb.model" type="string">evdev</merge>
      <merge key="input.xkb.layout" type="string">de</merge>
      <merge key="input.xkb.variant" type="string">nodeadkeys</merge>
   </match>
</deviceinfo>
I have received a solution to an annoyance I encountered after having added a new user on the system. I` ve given this new user
a very good passwd with many _?!\ etc. But when I logged out of X and logged in as this new user the system didn` t accept the passwd because I had a us keyboard layout again and those symbols and signs were on different keys.

When hal took over with evdev this issue never happened again. When I now log out of X I have the de keyboard layout.

Above all this the mouse now works better than before. It sports functions I was never able to squeeze out of it by editing xorg.conf.

So I like hal + evdev :)
Top
dmpogo
Advocate
Advocate
Posts: 3714
Joined: Thu Sep 02, 2004 9:21 pm
Location: Canada

  • Quote

Post by dmpogo » Sat Jun 13, 2009 8:24 am

curmudgeon wrote:
d2_racing wrote:

Code: Select all

At the moment, I would happily consign the new evdev, hal, and dbus combo to the wastebasket and go back to the old method.
This is still easy, just set

Option "AutoAddDevices" "False"

in Section "ServerFlags" of your old xorg.conf and go ahead
Top
technick
n00b
n00b
Posts: 18
Joined: Wed Jul 25, 2007 9:19 am

  • Quote

Post by technick » Sat Jun 13, 2009 11:03 am

@curmudgeon

I'm totally agree whith you, Linux become too complicate for users. I'm a advanced user, IT professionnal and I use linux from a long time but..... I'm tired to used half of my time to search why somethig goes wrong. It take me one day (yesterday) to install kde4 on my gento 64 and now, as soon I make a right click on the start menu, kde crash. Solution 1 : I use my week-end to search why, solution 2 : I use windows. Perhaps when dev team will understand that users are not developpers and had a private life, linux will start to be used by them, for instance, servers is the good place. The rule of IT is to hide the complicates process to users, not to explain him that your system is the better and let him manually copy stranges lines that he nerver totally understand in a strange folder (as root) to connect a keyboard.

sample :
----------------------------------------------------------------------
This is still easy, just set

Option "AutoAddDevices" "False"

in Section "ServerFlags" of your old xorg.conf and go ahead
----------------------------------------------------------------------

sure it's easy :-)
Top
dmpogo
Advocate
Advocate
Posts: 3714
Joined: Thu Sep 02, 2004 9:21 pm
Location: Canada

  • Quote

Post by dmpogo » Sat Jun 13, 2009 1:31 pm

technick wrote: Solution 1 : I use my week-end to search why, solution 2 : I use windows.
There is an even better one - buy a Mac :)
Top
technick
n00b
n00b
Posts: 18
Joined: Wed Jul 25, 2007 9:19 am

  • Quote

Post by technick » Sat Jun 13, 2009 1:44 pm

dmpogo wrote: There is an even better one - buy a Mac :)
:-)

Don't worry I found the solution in the xorg.conf but what I say stay real someone who wan't just use a computer to work don't care about all linux problems. I will use a mac (at work) the day all my partners will use it. For instance they use windows/office :-/
Top
keenblade
Veteran
Veteran
User avatar
Posts: 1087
Joined: Sun Oct 03, 2004 6:19 pm
Contact:
Contact keenblade
Website

  • Quote

Post by keenblade » Sat Jun 13, 2009 1:48 pm

dmpogo wrote:
technick wrote: Solution 1 : I use my week-end to search why, solution 2 : I use windows.
There is an even better one - buy a Mac :)
Then there is no right click. Can't stand it :)
Anyway it's all the same at the end...
Need help to get it working: "x-fi surround 5.1"
Top
dmpogo
Advocate
Advocate
Posts: 3714
Joined: Thu Sep 02, 2004 9:21 pm
Location: Canada

  • Quote

Post by dmpogo » Sat Jun 13, 2009 2:53 pm

technick wrote:
dmpogo wrote: There is an even better one - buy a Mac :)
:-)

Don't worry I found the solution in the xorg.conf but what I say stay real someone who wan't just use a computer to work don't care about all linux problems. I will use a mac (at work) the day all my partners will use it. For instance they use windows/office :-/
In my field (astrophysics) > 80% people are on Mac laptops. People with PC laptops really look like dinosaurs at the conferences.
Servers and cheap desktops for students are another matter (faculty tend to Macs even for desktops, those who still use desktops)
Top
Post Reply

42 posts
  • 1
  • 2
  • Next

Return to “Desktop Environments”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic