Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] emerge -uDv world screwed up keyboard layout.
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
blossa
Apprentice
Apprentice


Joined: 13 Jan 2005
Posts: 155

PostPosted: Mon Feb 09, 2009 3:02 pm    Post subject: [SOLVED] emerge -uDv world screwed up keyboard layout. Reply with quote

About once a week or so I do a "emerge -uDv world". This time it did not go so well... The first issue was that my swedish caracters on the keyboard stopped working. It has worked great for the last 3-4 years so I do not know what happened.

Code:
# emerge --info
Portage 2.1.6.7 (default/linux/amd64/2008.0, gcc-4.3.3, glibc-2.9_p20081201-r1, 2.6.28-gentoo x86_64)
=================================================================
System uname: Linux-2.6.28-gentoo-x86_64-Intel-R-_Core-TM-2_Extreme_CPU_X9650_@_3.00GHz-with-glibc2.2.5
Timestamp of tree: Sun, 08 Feb 2009 22:15:02 +0000
app-shells/bash:     3.2_p48
dev-java/java-config: 1.3.7-r1, 2.1.7
dev-lang/python:     2.5.4-r2
dev-util/cmake:      2.6.2-r1
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.4.2
sys-apps/sandbox:    1.3.5
sys-devel/autoconf:  2.13, 2.63
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.19.1
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.28-r1
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-pipe -march=core2 -msse3 -O2"
CHOST="x86_64-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/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-pipe -march=core2 -msse3 -O2"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://ftp.tu-clausthal.de/pub/linux/gentoo/ ftp://ftp.linux.ee/pub/gentoo/distfiles/ http://ftp.linux.ee/pub/gentoo/distfiles/ ftp://trumpetti.atm.tut.fi/gentoo/"
LANG="sv_SE.utf8"
LDFLAGS="-Wl,-O1"
LINGUAS="sv sv_SE"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
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"
PORTDIR_OVERLAY="/usr/local/portage/xeffects/trunk /usr/local/portage /usr/local/overlays/gentoo-science-overlay"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X aac aalib acl acpi alsa amd64 amrnb amrwb apache2 arts authdaemond berkdb bitmap-fonts bonobo browserplugin bzip2 cairo cdda cddb cdio cdparanoia cdr cgi cli cracklib crypt ctype cups curl dba dbus dri dts dvd dvdr dvdread emerald encode esd filter firefox flac flash fortran freetype ftp gd gdbm gimp glib glitz gpm gtk gtk2 hal iconv ipv6 isdnlog ivtv java javascript jpeg libcaca lm_sensors mad midi mmx mp3 mpeg mpg msn mudflap multilib musepack mysql mysqli ncurses nls nptl nptlonly nvidia opengl openmp pam panel-plugin pango pcre pdf pear perl plugins png pppd python qt3 qt4 quicktime rc5 readline reflection rtc sasl sdl session smp sockets spl sse sse2 sse3 sse4 ssl suid svg sysfs tcpd tiff trash-panel-plugin truetype truetype-fonts type1 type1-fonts unicode usb utempter v4l v4l2 vhosts vlm wmf xanim xml xorg xv xvid xvmc yv12" ALSA_CARDS="hda-intel" 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 authz_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" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="sv sv_SE" USERLAND="GNU" VIDEO_CARDS="nv nvidia%"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS


Code:
# locale
LANG=sv_SE.utf8
LC_CTYPE=sv_SE.utf8
LC_NUMERIC=sv_SE.utf8
LC_TIME=sv_SE.utf8
LC_COLLATE=sv_SE.utf8
LC_MONETARY=sv_SE.utf8
LC_MESSAGES="sv_SE.utf8"
LC_PAPER=sv_SE.utf8
LC_NAME=sv_SE.utf8
LC_ADDRESS=sv_SE.utf8
LC_TELEPHONE=sv_SE.utf8
LC_MEASUREMENT=sv_SE.utf8
LC_IDENTIFICATION=sv_SE.utf8
LC_ALL=

To me the above looks ok...?

Anyway, trying to "emerge -e world" results in:
Code:
* Messages for package x11-wm/compiz-9999:

 * QA Warning: running aclocal in compile phase
 * QA Warning: running libtoolize in compile phase
 * QA Warning: running aclocal in compile phase
 * QA Warning: running autoconf in compile phase
 * QA Warning: running autoheader in compile phase
 * QA Warning: running automake in compile phase
 *
 * ERROR: x11-wm/compiz-9999 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 2738:  Called econf '--with-default-plugins' '--enable-gtk' '--disable-gconf' '--disable-gnome' '--disable-metacity' '--disable-kde' '--enable-librsvg' '--enable-dbus' '--enable-dbus-glib' '--disable-fuse'
 *               ebuild.sh, line  543:  Called die
 * The specific snippet of code:
 *            die "econf failed"
 *  The die message:
 *   econf failed
 *
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/x11-wm/compiz-9999/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/x11-wm/compiz-9999/temp/environment'.
 * This ebuild is from an overlay named 'xeffects': '/usr/local/portage/xeffects/trunk/'
 *


I have done both "emerge -e world" and "revdep-rebuild" for not so long ago so I know it should work.

First of all, I want to be able to "emerge -e world" again. Where shall I start looking for the reason to this issue?

Second, anyone have a hint what has happened with my locales settings?

Thanks in advance / Anders
_________________
QX9650, P5E64WS Pro, 4x1GB


Last edited by blossa on Thu Feb 12, 2009 10:55 am; edited 2 times in total
Back to top
View user's profile Send private message
blossa
Apprentice
Apprentice


Joined: 13 Jan 2005
Posts: 155

PostPosted: Mon Feb 09, 2009 7:49 pm    Post subject: Reply with quote

Hrm... Do I have an old version of compiz? If so, what have I done that makes portage not wanting me to install a newer version? :P
_________________
QX9650, P5E64WS Pro, 4x1GB
Back to top
View user's profile Send private message
sera
Retired Dev
Retired Dev


Joined: 29 Feb 2008
Posts: 1017
Location: CET

PostPosted: Mon Feb 09, 2009 11:43 pm    Post subject: Reply with quote

You installed x11-wm/compiz-9999. Witch is the cvs/svn/git whatever version. Witch in turn means it's a live build and there will never be any updates. To get the latest version just reemerge. Sometimes it builds sometimes not. It's what is to be expected.

An entry like "=x11-wm/compiz-0.7.8-r1 ~amd64" in package.keywords would help a lot and mask whatever necessary.

About the characters, in X or the console?
Back to top
View user's profile Send private message
blossa
Apprentice
Apprentice


Joined: 13 Jan 2005
Posts: 155

PostPosted: Tue Feb 10, 2009 10:15 am    Post subject: Reply with quote

Thanks for the reply. :) Removing "/usr/local/portage/xeffects/trunk" from the PORTDIR_OVERLAY seems to solve that one.

That error about compiz was just an example btw. There is several packages that gets error when I do "emerge -e world" now, compiz was just the first package it stopped at. Last time I tried I think it was "groff" that got some kind of error.

What feels kind of strange is that for everytime I do "emerge -e world" it gets a bit further before I get error (last time error was at 550 or something of 685 packages). Everytime I have files in "etc" that has to be updated. I run "etc-update" and try "emerge -e world" again and gets a bit further before I get error...

For now I think I can live with that. This locale-issue is getting more and more frustrating so I think I want to solve that first...

I have spent many hour now trying to figure it out but I cannot get my swedish caracter on my keyboard to work. :( Anybody has a hint for that issue? Do you need more info?
_________________
QX9650, P5E64WS Pro, 4x1GB
Back to top
View user's profile Send private message
VoidMage
Watchman
Watchman


Joined: 14 Oct 2006
Posts: 6194

PostPosted: Tue Feb 10, 2009 10:53 am    Post subject: Reply with quote

blossa wrote:
I have spent many hour now trying to figure it out but I cannot get my swedish caracter on my keyboard to work. :( Anybody has a hint for that issue?

Yeah, read that hal/evdev sticky.
Back to top
View user's profile Send private message
sera
Retired Dev
Retired Dev


Joined: 29 Feb 2008
Posts: 1017
Location: CET

PostPosted: Tue Feb 10, 2009 11:28 am    Post subject: Reply with quote

blossa wrote:
Do you need more info?


The question "X or console or both?" still stands.

the output of:

Code:
lshal | grep input


And the xorg-server version and the relevant portion of xorg.conf maybe. I mean server layout and input device sections.

The most adventurous overlay can be kept if one only would set keywords for specific versions as I did in the example above. If you think this is to much hassle I would recommend to take a look at portpeek if you not already know it.

Code:
emerge -pv portpeek
Back to top
View user's profile Send private message
blossa
Apprentice
Apprentice


Joined: 13 Jan 2005
Posts: 155

PostPosted: Tue Feb 10, 2009 3:56 pm    Post subject: Reply with quote

It works in console now. I don't think it worked before but I am not sure about it...

The sticky you are refering to, is that https://forums.gentoo.org/viewtopic-t-722498.html ?

I have 'hal' in my USE variables since before so it could be something to do with that...

I have started to look at that, thanks for the tips! But so far I cannot get it to work. Here is where I am now.

I have
Code:
CONFIG_INPUT_EVDEV=y

for my kernel instead of mentioned in the above linked thread
Code:
CONFIG_INPUT_EVDEV=m

Does it matter? I don't want modules if possible...

With this file
Code:

$ cat /etc/hal/fdi/policy/10-x11-input.fdi
<?xml version="1.0" encoding="UTF-8"?>
<deviceinfo version="0.2">
<device>
    <!-- Mouse configuration -->
    <match key="info.capabilities" contains="input.mouse">
      <merge key="input.x11_driver" type="string">evdev</merge>
    </match>

    <!-- Keyboard configuration -->
    <match key="info.capabilities" contains="input.keymap">
      <append key="info.callouts.add" type="strlist">hal-setup-keymap</append>
    </match>
    <match key="info.capabilities" contains="input.keys">
#     <merge key="input.xkb.model" type="string">pc105</merge>
      <merge key="input.xkb.model" type="string">evdev</merge>
      <merge key="input.x11_driver" type="string">evdev</merge>
      <merge key="input.xkb.layout" type="string">se</merge>
      <merge key="input.xkb.variant" type="string">qwerty</merge>
      <append key="input.xkb.options" type="strlist">compose:menu</append>
    </match>
  </device>
</deviceinfo>


I get
Code:
$ lshal | grep input
udi = '/org/freedesktop/Hal/devices/computer_logicaldev_input_0'
  info.addons.singleton = {'hald-addon-input'} (string list)
  info.capabilities = {'input', 'button'} (string list)
  info.category = 'input'  (string)
  info.subsystem = 'input'  (string)
  info.udi = '/org/freedesktop/Hal/devices/computer_logicaldev_input_0'  (string)
  input.device = '/dev/input/event1'  (string)
  input.product = 'Power Button (CM)'  (string)
  linux.device_file = '/dev/input/event1'  (string)
  linux.subsystem = 'input'  (string)
  linux.sysfs_path = '/sys/class/input/input1/event1'  (string)
udi = '/org/freedesktop/Hal/devices/computer_logicaldev_input'
  info.addons.singleton = {'hald-addon-input'} (string list)
  info.capabilities = {'input', 'button'} (string list)
  info.category = 'input'  (string)
  info.subsystem = 'input'  (string)
  info.udi = '/org/freedesktop/Hal/devices/computer_logicaldev_input'  (string)
  input.device = '/dev/input/event0'  (string)
  input.product = 'Power Button (FF)'  (string)
  linux.device_file = '/dev/input/event0'  (string)
  linux.subsystem = 'input'  (string)
  linux.sysfs_path = '/sys/class/input/input0/event0'  (string)
udi = '/org/freedesktop/Hal/devices/platform_i8042_i8042_KBD_port_logicaldev_input'
  info.addons.singleton = {'hald-addon-input'} (string list)
  info.capabilities = {'input', 'input.keyboard', 'input.keypad', 'input.keys', 'button'} (string list)
  info.category = 'input'  (string)
  info.subsystem = 'input'  (string)
  info.udi = '/org/freedesktop/Hal/devices/platform_i8042_i8042_KBD_port_logicaldev_input'  (string)
  input.device = '/dev/input/event2'  (string)
  input.originating_device = '/org/freedesktop/Hal/devices/platform_i8042_i8042_KBD_port'  (string)
  input.product = 'AT Translated Set 2 keyboard'  (string)
  input.x11_driver = 'evdev'  (string)
  input.xkb.layout = 'us'  (string)
  input.xkb.model = 'evdev'  (string)
  input.xkb.rules = 'base'  (string)
  input.xkb.variant = ''  (string)
  linux.device_file = '/dev/input/event2'  (string)
  linux.subsystem = 'input'  (string)
  linux.sysfs_path = '/sys/class/input/input2/event2'  (string)
udi = '/org/freedesktop/Hal/devices/usb_device_46d_c001_noserial_if0_logicaldev_input'
  info.capabilities = {'input', 'input.mouse'} (string list)
  info.category = 'input'  (string)
  info.subsystem = 'input'  (string)
  info.udi = '/org/freedesktop/Hal/devices/usb_device_46d_c001_noserial_if0_logicaldev_input'  (string)
  input.device = '/dev/input/event3'  (string)
  input.originating_device = '/org/freedesktop/Hal/devices/usb_device_46d_c001_noserial_if0'  (string)
  input.product = 'Logitech USB Mouse'  (string)
  input.x11_driver = 'evdev'  (string)
  linux.device_file = '/dev/input/event3'  (string)
  linux.subsystem = 'input'  (string)
  linux.sysfs_path = '/sys/class/input/input3/event3'  (string)


So I have us-layout it looks like... Here is my /etx/X11/xorg.conf
Code:
 $ cat /etc/X11/xorg.conf
Section "Module"
    Load        "dbe"     # Double buffer extension
    SubSection  "extmod"
      Option    "omit xfree86-dga"   # don't initialise the DGA extension
    EndSubSection
    Load        "type1"
    Load        "Type1"
    Load        "freetype"
    Load        "ttf"
    Load       "glx"
    Load       "dri"
EndSection

Section "Files"
    FontPath   "/usr/share/fonts/misc"
    FontPath   "/usr/share/fonts/75dpi"
    FontPath   "/usr/share/fonts/100dpi"
    FontPath   "/usr/share/fonts/TTF"
    FontPath   "/usr/share/fonts/Type1"
    FontPath   "/usr/share/fonts/local/"
    FontPath   "/usr/share/fonts/75dpi/:unscaled"
    FontPath   "/usr/share/fonts/100dpi/:unscaled"
    FontPath   "/usr/share/fonts/ttf-bitstream-vera"
    FontPath   "/usr/share/fonts/corefonts"
    FontPath   "/usr/share/fonts/freefont"
    FontPath   "/usr/share/fonts/freefonts"
EndSection

Section "ServerFlags"
Option "AutoAddDevices" "on"
Option "AutoEnableDevices" "on"
Option "AllowEmptyInput" "on"
EndSection

#Section "InputDevice"
#    Identifier   "Keyboard1"
#    Driver   "kbd"
#    Option "AutoRepeat" "500 30"
#    Option "XkbRules"   "xorg"
#    Option "XkbModel"   "pc105"
#    Option "XkbLayout"   "se"
#EndSection

#Section "InputDevice"
#    Identifier   "Mouse1"
#    Driver   "mouse"
#    Option "Protocol"    "auto"   # PS/2 Mouse
##    Option "Device"     "/dev/misc/psaux"
#    Option "Device"   "/dev/input/mice"
#    Option "ZAxisMapping"   "4 5"
#    Option "Buttons"   "5"
#EndSection

Section "Monitor"
    Identifier  "LG"
    HorizSync   31.5 - 82.0
    VertRefresh 56-75
EndSection

Section "Device"
    Identifier   "Standard VGA"
    VendorName   "Unknown"
    BoardName   "Unknown"
    Driver     "vga"
#    BusID      "PCI:0:10:0"
#    VideoRam   256
#    Clocks   25.2 28.3
EndSection

Section "Device"
    Identifier  "6200LE"
    Driver      "nvidia"
    #VideoRam    262144
    # Insert Clocks lines here if appropriate
    Option "RenderAccel"   "true"
    Option   "AddARGBGLXVisuals"   "true"
EndSection


Section "Extensions"
   Option   "Composite"   "enable"
EndSection

Section "Screen"
    Identifier  "Screen 1"
    Device      "6200LE"
    Monitor     "LG"
    DefaultDepth 24

    Subsection "Display"
        Depth       8
        Modes       "1280x1024" "1024x768" "800x600" "640x480"
        ViewPort    0 0
    EndSubsection
    Subsection "Display"
        Depth       16
        Modes       "1280x1024" "1024x768" "800x600" "640x480"
        ViewPort    0 0
    EndSubsection
    Subsection "Display"
        Depth       24
        Modes       "1280x1024" "1024x768" "800x600" "640x480"
        ViewPort    0 0
    EndSubsection
EndSection

Section "ServerLayout"
    Identifier  "Simple Layout"
    Screen "Screen 1"
#    InputDevice "Mouse1" "CorePointer"
#    InputDevice "Keyboard1" "CoreKeyboard"
EndSection

_________________
QX9650, P5E64WS Pro, 4x1GB
Back to top
View user's profile Send private message
VoidMage
Watchman
Watchman


Joined: 14 Oct 2006
Posts: 6194

PostPosted: Tue Feb 10, 2009 6:19 pm    Post subject: Reply with quote

Looks like that sticky lacks a certain one-liner:
Code:

hal-find-by-capability --capability input.keys | xargs hal-device

that gives far more relevant info than 'lshal | grep input'.

As for modules, I don't see a problem with it either way,
just make sure you have the driver too (xf86-input-evdev,
simply put evdev in INPUT_DEVICES and next 'emerge -upvD world'
will find it).

The file looks more or less OK, but make sure it's actually applied.
And I do hope you know, that hal needs to be restarted to apply it.
(while there are comandline tools to do it step-by-step, it's much easier this way,
as you need to restart X anyway)
Back to top
View user's profile Send private message
blossa
Apprentice
Apprentice


Joined: 13 Jan 2005
Posts: 155

PostPosted: Tue Feb 10, 2009 6:40 pm    Post subject: Reply with quote

Yes, I reboot between the tests. I think the same as you, it is easier to reboot that do it at the "command line".

Code:
# rc-update show
                  xdm |      default                                 
                 dbus |      default                                 
                 fsck | boot                                         
                 hald | boot                                         
                 mtab | boot                                         
                 root | boot                                         
                 swap | boot                                         
                 udev |                                 sysinit       
              keymaps | boot                                         
                devfs |                                 sysinit       
                dmesg |                                 sysinit       
                local |      default          nonetwork               
            savecache |              shutdown                         
           lm_sensors |      default                                 
           localmount | boot                                         
               autofs |      default                                 
          consolefont | boot                                         
              modules | boot                                         
             hostname | boot                                         
             mount-ro |              shutdown                         
               net.lo | boot                                         
             net.eth0 |      default                                 
               procfs | boot                                         
               sysctl | boot                                         
              urandom | boot                                         
         termencoding | boot                                         
              hwclock | boot                                         
             bootmisc | boot                                         
        device-mapper | boot                                         
              portmap |      default                                 
            alsasound |      default                                 
            killprocs |              shutdown           


Sorry for my n00bish question, but how do I know if the file is applied or not...?

Code:
# hal-find-by-capability --capability input.keys | xargs hal-device
udi = '/org/freedesktop/Hal/devices/platform_i8042_i8042_KBD_port_logicaldev_input'
  input.xkb.rules = 'base'  (string)
  info.category = 'input'  (string)
  input.xkb.model = 'evdev'  (string)
  linux.sysfs_path = '/sys/class/input/input2/event2'  (string)
  info.capabilities = { 'input', 'input.keyboard', 'input.keypad', 'input.keys', 'button' } (string list)
  info.subsystem = 'input'  (string)
  input.xkb.layout = 'us'  (string)
  info.parent = '/org/freedesktop/Hal/devices/platform_i8042_i8042_KBD_port'  (string)
  info.product = 'AT Translated Set 2 keyboard'  (string)
  input.xkb.variant = ''  (string)
  info.udi = '/org/freedesktop/Hal/devices/platform_i8042_i8042_KBD_port_logicaldev_input'  (string)
  input.x11_driver = 'evdev'  (string)
  input.device = '/dev/input/event2'  (string)
  linux.hotplug_type = 2  (0x2)  (int)
  input.product = 'AT Translated Set 2 keyboard'  (string)
  linux.subsystem = 'input'  (string)
  linux.device_file = '/dev/input/event2'  (string)
  info.addons.singleton = { 'hald-addon-input' } (string list)
  input.originating_device = '/org/freedesktop/Hal/devices/platform_i8042_i8042_KBD_port'  (string)

_________________
QX9650, P5E64WS Pro, 4x1GB
Back to top
View user's profile Send private message
sera
Retired Dev
Retired Dev


Joined: 29 Feb 2008
Posts: 1017
Location: CET

PostPosted: Tue Feb 10, 2009 7:55 pm    Post subject: Reply with quote

Taken from your lshal output.
Code:
  input.xkb.layout = 'us'  (string)
  input.xkb.model = 'evdev'  (string)
  input.xkb.rules = 'base'  (string)
  input.xkb.variant = ''  (string)

This is how you see whether the fdi file got applied. Clearly not.

I'm also wondering why you use the vga driver. What reason for?


BTW:
Code:
<match key="info.capabilities" contains="input.keys">

should be
Code:
<match key="info.capabilities" contains="input.keyboard">

if I'm not terribly mistaken.
Back to top
View user's profile Send private message
VoidMage
Watchman
Watchman


Joined: 14 Oct 2006
Posts: 6194

PostPosted: Tue Feb 10, 2009 8:54 pm    Post subject: Reply with quote

sera wrote:

BTW:
Code:
<match key="info.capabilities" contains="input.keys">

should be
Code:
<match key="info.capabilities" contains="input.keyboard">

if I'm not terribly mistaken.


In a way, both work - while 'input.keyboard' is indeed more correct,
'input.keys' is still used, cause one of the files shipped with hal used it.
Back to top
View user's profile Send private message
blossa
Apprentice
Apprentice


Joined: 13 Jan 2005
Posts: 155

PostPosted: Tue Feb 10, 2009 9:04 pm    Post subject: Reply with quote

Ok, but why is it not loaded?

I tried to do the change you suggested (from keys to keyboard) and now I get:

Code:
 $ hal-find-by-capability --capability input.keys | xargs hal-device
udi = '/org/freedesktop/Hal/devices/platform_i8042_i8042_KBD_port_logicaldev_input'
  input.xkb.rules = 'base'  (string)
  info.category = 'input'  (string)
  input.xkb.model = 'evdev'  (string)
  linux.sysfs_path = '/sys/class/input/input2/event2'  (string)
  info.capabilities = { 'input', 'input.keyboard', 'input.keypad', 'input.keys', 'button' } (string list)
  info.subsystem = 'input'  (string)
  input.xkb.layout = 'se'  (string)
  info.parent = '/org/freedesktop/Hal/devices/platform_i8042_i8042_KBD_port'  (string)
  info.product = 'AT Translated Set 2 keyboard'  (string)
  input.xkb.variant = 'qwerty'  (string)
  info.udi = '/org/freedesktop/Hal/devices/platform_i8042_i8042_KBD_port_logicaldev_input'  (string)
  input.x11_driver = 'evdev'  (string)
  input.device = '/dev/input/event2'  (string)
  linux.hotplug_type = 2  (0x2)  (int)
  input.xkb.options = { 'compose:menu' } (string list)
  input.product = 'AT Translated Set 2 keyboard'  (string)
  linux.subsystem = 'input'  (string)
  linux.device_file = '/dev/input/event2'  (string)
  info.addons.singleton = { 'hald-addon-input' } (string list)
  input.originating_device = '/org/freedesktop/Hal/devices/platform_i8042_i8042_KBD_port'  (string)


So now it loads I guess...? Still not swedish layout on the keyboard though... :( From /var/log/Xorg.0.log:
Code:
$ cat /var/log/Xorg.0.log

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 x86_64
Current Operating System: Linux dual_opt 2.6.28-gentoo #1 SMP Sat Jan 31 17:58:39 CET 2009 x86_64
Build Date: 10 February 2009  02:32:01PM
 
   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: Tue Feb 10 21:40:22 2009
(==) Using config file: "/etc/X11/xorg.conf"
(==) ServerLayout "Simple Layout"
(**) |-->Screen "Screen 1" (0)
(**) |   |-->Monitor "LG"
(**) |   |-->Device "6200LE"
(**) Option "AllowEmptyInput" "on"
(**) Option "AutoAddDevices" "on"
(**) Option "AutoEnableDevices" "on"
(**) Automatically adding devices
(**) Automatically enabling devices
(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/TTF,
   /usr/share/fonts/Type1,
   /usr/share/fonts/local/,
   /usr/share/fonts/75dpi/:unscaled,
   /usr/share/fonts/100dpi/:unscaled,
   /usr/share/fonts/ttf-bitstream-vera,
   /usr/share/fonts/corefonts,
   /usr/share/fonts/freefont,
   /usr/share/fonts/freefonts,
   /usr/share/fonts/misc/,
   /usr/share/fonts/TTF/,
   /usr/share/fonts/Type1/,
   /usr/share/fonts/100dpi/,
   /usr/share/fonts/75dpi/,
   built-ins
(==) ModulePath set to "/usr/lib64/xorg/modules"
(**) Extension "Composite" is enabled
(II) Cannot locate a core pointer device.
(II) Cannot locate a core keyboard device.
(II) The server relies on HAL to provide the list of input devices.
   If no devices become available, reconfigure HAL or disable AllowEmptyInput.
(WW) Open ACPI failed (/var/run/acpid.socket) (No such file or directory)
(II) No APM support in BIOS or kernel
(II) Loader magic: 0x7aee40
(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
   X.Org Font Renderer : 0.6
(II) Loader running on linux
(--) using VT number 7

(--) PCI:*(0@1:0:0) nVidia Corporation G94 [GeForce 9600 GT] rev 161, Mem @ 0xfd000000/16777216, 0xd0000000/268435456, 0xfa000000/33554432, I/O @ 0x0000bc00/128, BIOS @ 0x????????/524288
(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) "extmod" will be loaded. This was enabled by default and also specified in the config file.
(II) "dbe" will be loaded. This was enabled by default and also specified in the config file.
(II) "glx" will be loaded. This was enabled by default and also specified in the config file.
(II) "freetype" will be loaded. This was enabled by default and also specified in the config file.
(II) "record" will be loaded by default.
(II) "dri" will be loaded. This was enabled by default and also specified in the config file.
(II) LoadModule: "dbe"

(II) Loading /usr/lib64/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: "extmod"

(II) Loading /usr/lib64/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 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: "type1"

(WW) Warning, couldn't open module type1
(II) UnloadModule: "type1"
(EE) Failed to load module "type1" (module does not exist, 0)
(II) LoadModule: "type1"

(WW) Warning, couldn't open module type1
(II) UnloadModule: "type1"
(EE) Failed to load module "type1" (module does not exist, 0)
(II) LoadModule: "freetype"

(II) Loading /usr/lib64/xorg/modules/fonts//libfreetype.so
(II) Module freetype: vendor="X.Org Foundation & the After X-TT Project"
   compiled for 1.5.3, module version = 2.1.0
   Module class: X.Org Font Renderer
   ABI class: X.Org Font Renderer, version 0.6
(II) Loading font FreeType
(II) LoadModule: "ttf"

(WW) Warning, couldn't open module ttf
(II) UnloadModule: "ttf"
(EE) Failed to load module "ttf" (module does not exist, 0)
(II) LoadModule: "glx"

(II) Loading /usr/lib64/xorg/modules/extensions//libglx.so
(II) Module glx: vendor="NVIDIA Corporation"
   compiled for 4.0.2, module version = 1.0.0
   Module class: X.Org Server Extension
(II) NVIDIA GLX Module  180.27  Tue Jan 27 12:43:19 PST 2009
(II) Loading extension GLX
(II) LoadModule: "dri"

(II) Loading /usr/lib64/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
(II) LoadModule: "record"

(II) Loading /usr/lib64/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: "nvidia"

(II) Loading /usr/lib64/xorg/modules/drivers//nvidia_drv.so
(II) Module nvidia: vendor="NVIDIA Corporation"
   compiled for 4.0.2, module version = 1.0.0
   Module class: X.Org Video Driver
(II) NVIDIA dlloader X Driver  180.27  Tue Jan 27 12:23:08 PST 2009
(II) NVIDIA Unified Driver for all Supported NVIDIA GPUs
(II) Primary Device is: PCI 01@00:00:0
(II) Loading sub module "fb"
(II) LoadModule: "fb"

(II) Loading /usr/lib64/xorg/modules//libfb.so
(II) Module fb: vendor="X.Org Foundation"
   compiled for 1.5.3, module version = 1.0.0
   ABI class: X.Org ANSI C Emulation, version 0.4
(II) Loading sub module "wfb"
(II) LoadModule: "wfb"

(II) Loading /usr/lib64/xorg/modules//libwfb.so
(II) Module wfb: vendor="X.Org Foundation"
   compiled for 1.5.3, module version = 1.0.0
   ABI class: X.Org ANSI C Emulation, version 0.4
(II) Loading sub module "ramdac"
(II) LoadModule: "ramdac"
(II) Module "ramdac" already built-in
(II) resource ranges after probing:
   [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]
(**) NVIDIA(0): Depth 24, (--) framebuffer bpp 32
(==) NVIDIA(0): RGB weight 888
(==) NVIDIA(0): Default visual is TrueColor
(==) NVIDIA(0): Using gamma correction (1.0, 1.0, 1.0)
(**) NVIDIA(0): Option "RenderAccel" "true"
(**) NVIDIA(0): Option "AddARGBGLXVisuals" "true"
(**) NVIDIA(0): Enabling RENDER acceleration
(II) NVIDIA(0): Support for GLX with the Damage and Composite X extensions is
(II) NVIDIA(0):     enabled.
(II) NVIDIA(0): NVIDIA GPU GeForce 9600 GT (G94) at PCI:1:0:0 (GPU-0)
(--) NVIDIA(0): Memory: 524288 kBytes
(--) NVIDIA(0): VideoBIOS: 62.94.21.00.16
(II) NVIDIA(0): Detected PCI Express Link width: 16X
(--) NVIDIA(0): Interlaced video modes are supported on this GPU
(--) NVIDIA(0): Connected display device(s) on GeForce 9600 GT at PCI:1:0:0:
(--) NVIDIA(0):     LG L1730S (CRT-0)
(--) NVIDIA(0): LG L1730S (CRT-0): 400.0 MHz maximum pixel clock
(II) NVIDIA(0): Assigned Display Device: CRT-0
(II) NVIDIA(0): Validated modes:
(II) NVIDIA(0):     "1280x1024"
(II) NVIDIA(0):     "1024x768"
(II) NVIDIA(0):     "800x600"
(II) NVIDIA(0):     "640x480"
(II) NVIDIA(0): Virtual screen size determined to be 1280 x 1024
(--) NVIDIA(0): DPI set to (95, 96); computed from "UseEdidDpi" X config
(--) NVIDIA(0):     option
(**) NVIDIA(0): Enabling 32-bit ARGB GLX visuals.
(--) Depth 24 pixmap format is 32 bpp
(II) do I need RAC?  No, I don't.
(II) resource ranges after preInit:
   [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) NVIDIA(0): Initialized GPU GART.
(II) NVIDIA(0): ACPI: failed to connect to the ACPI event daemon; the daemon
(II) NVIDIA(0):     may not be running or the "AcpidSocketPath" X
(II) NVIDIA(0):     configuration option may not be set correctly.  When the
(II) NVIDIA(0):     ACPI event daemon is available, the NVIDIA X driver will
(II) NVIDIA(0):     try to use it to receive ACPI event notifications.  For
(II) NVIDIA(0):     details, please see the "ConnectToAcpid" and
(II) NVIDIA(0):     "AcpidSocketPath" X configuration options in Appendix B: X
(II) NVIDIA(0):     Config Options in the README.
(II) NVIDIA(0): Setting mode "1280x1024"
(II) Loading extension NV-GLX
(II) NVIDIA(0): NVIDIA 3D Acceleration Architecture Initialized
(==) NVIDIA(0): Disabling shared memory pixmaps
(II) NVIDIA(0): Using the NVIDIA 2D acceleration architecture
(==) NVIDIA(0): Backing store disabled
(==) NVIDIA(0): Silken mouse enabled
(II) NVIDIA(0): DPMS enabled
(II) Loading extension NV-CONTROL
(II) Loading extension XINERAMA
(==) RandR enabled
(II) Initializing built-in extension MIT-SHM
(II) Initializing built-in extension XInputExtension
(II) Initializing built-in extension XTEST
(II) Initializing built-in extension XKEYBOARD
(II) Initializing built-in extension XINERAMA
(II) Initializing built-in extension XFIXES
(II) Initializing built-in extension RENDER
(II) Initializing built-in extension RANDR
(II) Initializing built-in extension COMPOSITE
(II) Initializing built-in extension DAMAGE
(II) Initializing built-in extension XEVIE
(II) Initializing extension GLX
(II) config/hal: Adding input device Logitech USB Mouse
(II) LoadModule: "evdev"

(II) Loading /usr/lib64/xorg/modules/input//evdev_drv.so
(II) Module evdev: vendor="X.Org Foundation"
   compiled for 1.5.3, module version = 2.1.2
   Module class: X.Org XInput Driver
   ABI class: X.Org XInput driver, version 2.1
(**) Logitech USB Mouse: always reports core events
(**) Logitech USB Mouse: Device: "/dev/input/event3"
(II) Logitech USB Mouse: Found 3 mouse buttons
(II) Logitech USB Mouse: Found x and y relative axes
(II) Logitech USB Mouse: Configuring as mouse
(**) Logitech USB Mouse: YAxisMapping: buttons 4 and 5
(**) Logitech USB Mouse: EmulateWheelButton: 4, EmulateWheelInertia: 10, EmulateWheelTimeout: 200
(II) XINPUT: Adding extended input device "Logitech USB Mouse" (type: MOUSE)
(II) config/hal: Adding input device AT Translated Set 2 keyboard
(**) AT Translated Set 2 keyboard: always reports core events
(**) AT Translated Set 2 keyboard: Device: "/dev/input/event2"
(II) AT Translated Set 2 keyboard: Found keys
(II) AT Translated Set 2 keyboard: Configuring as keyboard
(II) XINPUT: Adding extended input device "AT Translated Set 2 keyboard" (type: KEYBOARD)
(**) Option "xkb_rules" "evdev"
(**) Option "xkb_model" "evdev"
(**) Option "xkb_layout" "se"
(**) Option "xkb_variant" "qwerty"


Looks to me like it should be swedish now... Maybe the xkb_model is wrong? Should I not have 'pc105'?

Regarding the VGA-driver, I change graphic card often so I am just lazy. *lol*
_________________
QX9650, P5E64WS Pro, 4x1GB
Back to top
View user's profile Send private message
sera
Retired Dev
Retired Dev


Joined: 29 Feb 2008
Posts: 1017
Location: CET

PostPosted: Tue Feb 10, 2009 9:51 pm    Post subject: Reply with quote

Quote:
hal-find-by-capability --capability input.keys | xargs hal-device


Just strangely and randomly rearrange the output for me. But I'd say yes, this was the fix.

input.xkb.rules = 'base' in lshal but not in Xorg.0.log. I'd suggest you let Xorg write a new xorg.conf and incorporate from there only what's necessary.

And get rid of all X related cvs/svn/git stuff. The snapshots in the overlays are often very up to date.
Back to top
View user's profile Send private message
blossa
Apprentice
Apprentice


Joined: 13 Jan 2005
Posts: 155

PostPosted: Wed Feb 11, 2009 9:51 am    Post subject: Reply with quote

I don't like this idea of letting Xorg write a new xorg.conf, I want to know whats wrong. It feels a bit like re-installing Windows when something goes wrong. :P

But ok, I will try. Just to remove /etc/X11/xorg.conf and emerge xorg-server I guess...? Or is it another way of doing it?

What "X related cvs/svn/git stuff" are you refering to?
_________________
QX9650, P5E64WS Pro, 4x1GB
Back to top
View user's profile Send private message
sera
Retired Dev
Retired Dev


Joined: 29 Feb 2008
Posts: 1017
Location: CET

PostPosted: Wed Feb 11, 2009 12:09 pm    Post subject: Reply with quote

Code:

mv /etc/X11/xorg.conf /etc/X11/xorg.conf.bak
X -configure

Then copy the generated xorg.conf to /etc/X11/xorg.conf

I could reduce my xorg.conf of far more than a hundred lines from before the modular X days to a few lines. An everything works fine and I don't have a single EE or WW in Xorg.0.log.

The graphical desktop is part of the system in windows. Here we are just talking about a program running on a system. So no reboot needed. :wink:

Just in case: could you once again post the output
Code:
lshal | grep input.keyboard -A20
I somehow don't trust the output generated by the other command/tool.

Quote:
What "X related cvs/svn/git stuff" are you refering to?

-unmerge all 9999 packages
-remove /etc/portage/package.unmask
you use layman so
-remove all links in /etc/portage/package.keywords/
-replace every keyword in package.keywords with a valid package atom. only use ~amd64 nothing else.

equery list <package> -p
and for overlay stuff
equery list <package> -o
might help a lot

Edit: forgot the most important thing:
-set ACCEPT_KEYWORDS="amd64" in make.conf, what you do is an absolute killer.
Back to top
View user's profile Send private message
blossa
Apprentice
Apprentice


Joined: 13 Jan 2005
Posts: 155

PostPosted: Wed Feb 11, 2009 3:43 pm    Post subject: Reply with quote

I don't have any 9999-packages installed anymore (and atm compiz don't work but I will look into that later on).

Code:
Edit: forgot the most important thing:
-set ACCEPT_KEYWORDS="amd64" in make.conf, what you do is an absolute killer.

I have had this installation since 2003 with '~amd64 amd64' and has not ran into problems like this before.

The reason I reboot is that from what I read I have to restart hald, xdm (and xorg) when doing changes inside "/etc/hal/fdi/policy/10-x11-input.fdi". For me it is faster to reboot than to restart them one by one manually.

Code:
$ lshal | grep input.keyboard -A20
  info.capabilities = {'input', 'input.keyboard', 'input.keypad', 'input.keys', 'button'} (string list)
  info.category = 'input'  (string)
  info.parent = '/org/freedesktop/Hal/devices/platform_i8042_i8042_KBD_port'  (string)
  info.product = 'AT Translated Set 2 keyboard'  (string)
  info.subsystem = 'input'  (string)
  info.udi = '/org/freedesktop/Hal/devices/platform_i8042_i8042_KBD_port_logicaldev_input'  (string)
  input.device = '/dev/input/event2'  (string)
  input.originating_device = '/org/freedesktop/Hal/devices/platform_i8042_i8042_KBD_port'  (string)
  input.product = 'AT Translated Set 2 keyboard'  (string)
  input.x11_driver = 'evdev'  (string)
  input.xkb.layout = 'se'  (string)
  input.xkb.model = 'evdev'  (string)
  input.xkb.options = {'compose:menu'} (string list)
  input.xkb.rules = 'base'  (string)
  input.xkb.variant = 'qwerty'  (string)
  linux.device_file = '/dev/input/event2'  (string)
  linux.hotplug_type = 2  (0x2)  (int)
  linux.subsystem = 'input'  (string)
  linux.sysfs_path = '/sys/class/input/input2/event2'  (string)

udi = '/org/freedesktop/Hal/devices/pci_8086_2926'


I will try the other things you are mentioning as soon as I can. So far emptying package.unmask and packages.keywords did not solve anything.
_________________
QX9650, P5E64WS Pro, 4x1GB
Back to top
View user's profile Send private message
blossa
Apprentice
Apprentice


Joined: 13 Jan 2005
Posts: 155

PostPosted: Wed Feb 11, 2009 4:03 pm    Post subject: Reply with quote

I use xfce4 btw.
_________________
QX9650, P5E64WS Pro, 4x1GB
Back to top
View user's profile Send private message
sera
Retired Dev
Retired Dev


Joined: 29 Feb 2008
Posts: 1017
Location: CET

PostPosted: Wed Feb 11, 2009 8:22 pm    Post subject: Reply with quote

looking in /usr/share/X11/xkb/rules/base.lst

there is no qwerty variant for the layout se

You have to choose from this list or better the one on your system.

nodeadkeys se: Eliminate dead keys
dvorak se: Dvorak
rus se: Russian phonetic
rus_nodeadkeys se: Russian phonetic, eliminate dead keys
smi se: Northern Saami
mac se: Macintosh
svdvorak se: Svdvorak

I guess as you specify an inexistent xkb configuration xorg takes the default us layout.

With your fdi file you are anyway overconfiguring hal like with the syncrate in your xorg.conf (the driver obviously recognize your Monitor)

Code:
<?xml version="1.0" encoding="UTF-8"?>
<deviceinfo version="0.2">
  <device>
    <match key="info.capabilities" contains="input.keyboard">
      <merge key="input.xkb.layout" type="string">se</merge>
    </match>
  </device>
</deviceinfo>


and if you really need a variant merge just this key and not 10 others as well.
Back to top
View user's profile Send private message
blossa
Apprentice
Apprentice


Joined: 13 Jan 2005
Posts: 155

PostPosted: Thu Feb 12, 2009 10:55 am    Post subject: Reply with quote

Thank you for pointing me in the right direction!! :D

This worked:
Code:
$ cat /etc/hal/fdi/policy/10-x11-input.fdi
<?xml version="1.0" encoding="UTF-8"?>
<deviceinfo version="0.2">
<device>
    <!-- Mouse configuration -->
    <match key="info.capabilities" contains="input.mouse">
      <merge key="input.x11_driver" type="string">evdev</merge>
    </match>

    <!-- Keyboard configuration -->
    <match key="info.capabilities" contains="input.keymap">
      <append key="info.callouts.add" type="strlist">hal-setup-keymap</append>
    </match>
    <match key="info.capabilities" contains="input.keyboard">
      <merge key="input.xkb.model" type="string">evdev</merge>
      <merge key="input.x11_driver" type="string">evdev</merge>
      <merge key="input.xkb.layout" type="string">se</merge>
      <merge key="input.xkb.variant" type="string">nodeadkeys</merge>
      <append key="input.xkb.options" type="strlist">compose:menu</append>
    </match>
  </device>
</deviceinfo>


The reflection I have is that I have ALWAYS had a pc105 keyboard with qwerty layout. The variant "nodeadkeys" makes no sense to me. I tried in the beginning to not have any variant set. It did not work at that time but maybe I had something else missconfigured at that time.
_________________
QX9650, P5E64WS Pro, 4x1GB
Back to top
View user's profile Send private message
sera
Retired Dev
Retired Dev


Joined: 29 Feb 2008
Posts: 1017
Location: CET

PostPosted: Thu Feb 12, 2009 12:38 pm    Post subject: Reply with quote

Nice to hear the transition to evdev finally succeeded.

Deadkeys means the keys found on the left of the main part of the keyboard on suns keyboards if I'm not mistaken.

As a final note, don't fix what's not broken. It makes debugging of the real problems and swapping parts of the system just harder.
Back to top
View user's profile Send private message
Dan
Veteran
Veteran


Joined: 25 Oct 2005
Posts: 1301

PostPosted: Sun Feb 15, 2009 11:04 pm    Post subject: Reply with quote

perfect for alps touchpad
Code:
<?xml version="1.0" encoding="ISO-8859-1"?>                                                               
<deviceinfo version="0.2">                                                                               
  <device>                                                                                               
   <!-- AlpsTouchPad -->                                                                                 
    <match key="info.capabilities" contains="input.touchpad">                                             
        <merge key="input.x11_driver" type="string">synaptics</merge>                                     
        <merge key="input.x11_options.SHMConfig" type="string">on</merge>                                 
   <!-- Tapping -->                                                                                       
        <merge key="input.x11_options.TapButton1" type="string">1</merge>                                 
        <merge key="input.x11_options.TapButton2" type="string">2</merge>                                 
        <merge key="input.x11_options.TapButton3" type="string">3</merge>                                 
   <!-- Scrolling up/down -->                                                                             
        <merge key="input.x11_options.VertEdgeScroll" type="string">1</merge>                             
        <merge key="input.x11_options.HorizEdgeScroll" type="string">1</merge>                           
   <!-- Corner clicks -->                                                                                 
        <merge key="input.x11_options.RBCornerButton" type="string">2</merge>                             
        <merge key="input.x11_options.RTCornerButton" type="string">3</merge>
   <!-- Dans Addons -->
        <merge key="input.x11_options.SendCoreEvents" type="string"></merge>
        <merge key="input.x11_options.protocol" type="string">auto-dev</merge>
        <merge key="input.x11_options.LeftEdge" type="string">130</merge>
        <merge key="input.x11_options.TopEdge" type="string">130</merge>
        <merge key="input.x11_options.BottomEdge" type="string">640</merge>
        <merge key="input.x11_options.RightEdge" type="string">840</merge>
        <merge key="input.x11_options.FingerLow" type="string">7</merge>
        <merge key="input.x11_options.FingerHigh" type="string">8</merge>
        <merge key="input.x11_options.Emulate3Buttons" type="string">on</merge>
        <merge key="input.x11_options.MaxTapTime" type="string">180</merge>
        <merge key="input.x11_options.MinTapTime" type="string">110</merge>
        <merge key="input.x11_options.ClickTime" type="string">0</merge>
        <merge key="input.x11_options.EmulateMidButtonTime" type="string">75</merge>
        <merge key="input.x11_options.VertScrollDelta" type="string">20</merge>
        <merge key="input.x11_options.HoirizScrollDelta" type="string">20</merge>
        <merge key="input.x11_options.MinSpeed" type="string">0.40</merge>
        <merge key="input.x11_options.MaxSpeed" type="string">0.65</merge>
        <merge key="input.x11_options.AccelFactor" type="string">0.030</merge>
        <merge key="input.x11_options.EdgeMotionMinSpeed" type="string">200</merge>
        <merge key="input.x11_options.EdgeMotionMaxSpeed" type="string">200</merge>
        <merge key="input.x11_options.UpDownScrolling" type="string">1</merge>
        <merge key="input.x11_options.CircularScrolling" type="string">1</merge>
        <merge key="input.x11_options.CircScrollDelta" type="string">0.1</merge>
        <merge key="input.x11_options.CircScrollTrigger" type="string">3</merge>
        <merge key="input.x11_options.VertEdgeScroll" type="string">on</merge>
    </match>
  </device>
</deviceinfo>

_________________
- Failure is not an option. It's bundled with your software.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum