Forums

Skip to content

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

Best upgrade method to Xserver1.5 with Hal and 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
398 posts
  • Page 6 of 16
    • Jump to page:
  • Previous
  • 1
  • …
  • 4
  • 5
  • 6
  • 7
  • 8
  • …
  • 16
  • Next
Author
Message
ronmon
Veteran
Veteran
User avatar
Posts: 1043
Joined: Mon Apr 15, 2002 12:53 pm
Location: Key West, FL

  • Quote

Post by ronmon » Wed Apr 01, 2009 9:38 am

VoidMage wrote:Frankly, while I don't know what exactly are you doing with xbindkeys,
I suspect is something that hal-setup-keymap was meant for
- remaping a scancode to a keysym.
It obviously doesn't work and I don't know why.

Code: Select all

$ hal-setup-keymap
hal-setup-keymap: Failed to get UDI
The keys are detected by showkey and xev. Xfce's keyboard shortcut setup app also sees them by their appropriate names, e.g. XF86AudioMute, XF86Mail, etc. But after setting them up, the keys still didn't do anything.

No remapping was needed and they all work without a single .fdi file. I just use xbindkeys to make them produce actions. Here's my .xbinkeysrc file:

Code: Select all

# Web Browser
"firefox -new-tab"
    XF86HomePage

# Email
"claws-mail"
    XF86Mail

# Documents
"thunar"
    XF86Documents

# Mute Sound
"amixer -c 0 sset 'Master' toggle"
    XF86AudioMute

# Volume Down
"amixer -c 0 sset 'Master' 3%-"
    XF86AudioLowerVolume

# Volume Up
"amixer -c 0 sset 'Master' 3%+"
    XF86AudioRaiseVolume

# Poker Stars (seemed an appropriate use of the 'Star' button)
"env WINEPREFIX='/home/ronmon/.wine' wine 'C:\\Program Files\\PokerStars\\PokerStarsUpdate.exe'"
    XF86Favorites
Ask Questions the Smart Way - by ESR
Top
depontius
Advocate
Advocate
Posts: 3533
Joined: Wed May 05, 2004 4:06 pm

  • Quote

Post by depontius » Wed Apr 01, 2009 1:00 pm

I've decided it's time to take one system, and do the hal/evdev migration, so I found this thread as my starting point. I'm also doing things one step at a time, so for now I'm sticking with stable xorg. If I can get this much running, then I may try moving to 1.5, or it sounds as if it's about to go stable.

I've been building all of my kernels with EVDEV for some time now, just not using it.
I've put "hal" into my USE and added "evdev" into INPUT_DEVICES, but for now I haven't removed "keyboard", "mouse", or "synaptics".
I've done the "emerge -atuvDN world", and built xf86-input-evdev-1.1.5-r2 and rebuilt xorg-server-1.3.0.0-r6.

What's confusing me is:

Code: Select all

localhost ~ # ls -laR /etc/hal/fdi/
/etc/hal/fdi/:
total 20
drwxr-xr-x 5 root root 4096 Feb 17 08:42 .
drwxr-xr-x 3 root root 4096 Feb 17 08:42 ..
drwxr-xr-x 2 root root 4096 Mar 30 20:41 information
drwxr-xr-x 2 root root 4096 Mar 30 20:41 policy
drwxr-xr-x 2 root root 4096 Mar 30 20:41 preprobe

/etc/hal/fdi/information:
total 8
drwxr-xr-x 2 root root 4096 Mar 30 20:41 .
drwxr-xr-x 5 root root 4096 Feb 17 08:42 ..
-rw-r--r-- 1 root root    0 Mar 30 20:41 .keep_sys-apps_hal-0

/etc/hal/fdi/policy:
total 8
drwxr-xr-x 2 root root 4096 Mar 30 20:41 .
drwxr-xr-x 5 root root 4096 Feb 17 08:42 ..
-rw-r--r-- 1 root root    0 Mar 30 20:41 .keep_sys-apps_hal-0

/etc/hal/fdi/preprobe:
total 8
drwxr-xr-x 2 root root 4096 Mar 30 20:41 .
drwxr-xr-x 5 root root 4096 Feb 17 08:42 ..
-rw-r--r-- 1 root root    0 Mar 30 20:41 .keep_sys-apps_hal-0
There are no policy or fdi files in there at all. I've seen lots of files listed here, but I've been presuming that they were all tweaks or enhancements of existing files, not a completely clean start. From what I can tell, if I were to try to "convert" now by taking the input section out of xorg.conf, I'd have a toasted system, at least as far as X is concerned. I presume I've missed something, because I presume there should be a default set of policy files in there, and I've missed the magic step that is supposed to populate them.

This doesn't look like "just works" to me, and at the moment it looks worse to fix than xorg.conf at its hairiest of the 1990's.

All of this is being done over ssh, but I've just tried out what I've done so far. Still works, but no sign at all of the evdev stuff in the log. I have X set to restart under gdm when I exit, so it should have picked up the new settings.

Is there a more elementary set of instructions than this thread?
.sigs waste space and bandwidth
Top
Lori
Guru
Guru
User avatar
Posts: 338
Joined: Tue Mar 30, 2004 6:19 pm
Location: Barcelona, Spain

  • Quote

Post by Lori » Wed Apr 01, 2009 1:10 pm

You can find some "default" .fdi policy files under /usr/share/hal/fdi/policy/10osvendor/
Just copy over to /etc/hal/fdi/policy and tweak whatever you need.
"The hunt is sweeter then the kill."
Registered Linux User #176911
Top
depontius
Advocate
Advocate
Posts: 3533
Joined: Wed May 05, 2004 4:06 pm

  • Quote

Post by depontius » Wed Apr 01, 2009 2:03 pm

Plus I just found this: http://www.gentoo.org/proj/en/desktop/x ... -guide.xml

This looks like what I've been needing.
.sigs waste space and bandwidth
Top
saellaven
l33t
l33t
Posts: 677
Joined: Sun Jul 23, 2006 4:24 am

  • Quote

Post by saellaven » Wed Apr 01, 2009 5:40 pm

I moved to 1.5.3 last night and everything went pretty well. I didn't need to copy over any fdi files at all (US english with a multimedia keyboard). The one glitch I did have was that my regular END key wouldn't work though the one on my number pad did. After a little searching, I found that if I ran setxkbmap (no options required), the END key worked again. I'm not sure if it'll persist across sessions or not since I haven't logged out since.
Ryzen 3700X, Asus Prime X570-Pro, 64 GB DDR4 3200, GeForce GTX 1660 Super
openrc-0.17, ~vanilla-sources, ~nvidia-drivers, ~gcc
Top
VoidMage
Watchman
Watchman
User avatar
Posts: 6196
Joined: Sat Oct 14, 2006 8:43 am

  • Quote

Post by VoidMage » Wed Apr 01, 2009 5:42 pm

@depontius: what you are trying to do is pointless -
this whole thread is about >=xorg-server-1.4.2
and >=xf86-input-evdev-1.2.0 (by now actually much later
versions, at least 1.5.0 and 2.1.0, I think).
Before things worked in a pretty different way.

@ronmon: OK, I assumed too much,you were trying to do something different.
as for hal-setup-keymap, I think it's not meant to be used from the command line,
it's probably just for internal hal use with user/vendor-provided data table.

@saellaven: if you still need to run setxkbmap, then it's still not configured correctly.
Top
depontius
Advocate
Advocate
Posts: 3533
Joined: Wed May 05, 2004 4:06 pm

  • Quote

Post by depontius » Wed Apr 01, 2009 6:01 pm

Both switching input to evdev and moving to a new level of xorg seem like pretty disruptive changes to me. I was hoping to take them one at a time, by doing the input/evdev stuff now, and just let xorg come in when it's stable.
.sigs waste space and bandwidth
Top
ronmon
Veteran
Veteran
User avatar
Posts: 1043
Joined: Mon Apr 15, 2002 12:53 pm
Location: Key West, FL

  • Quote

Post by ronmon » Wed Apr 01, 2009 8:18 pm

VoidMage wrote: @ronmon: OK, I assumed too much,you were trying to do something different.
as for hal-setup-keymap, I think it's not meant to be used from the command line,
it's probably just for internal hal use with user/vendor-provided data table.
I am quite aware of this fact. After all my searching on this subject I have a pretty good grasp on hal and evdev now.

As I said, all my keys are being mapped without even a single .fdi file in /etc/hal/fdi/policy. I just had to find a way to associate an action with the input. 'xbindkeys' fills the need for now.
Ask Questions the Smart Way - by ESR
Top
meldolion
n00b
n00b
Posts: 22
Joined: Wed Sep 07, 2005 10:56 am

  • Quote

Post by meldolion » Thu Apr 02, 2009 10:55 pm

Hi all,
I've just a question...

here is my

Code: Select all

meldolion log # 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>
                <merge key="input.x11_options.buttons" type="integer">10</merge>
                <merge key="input.x11_options.ZAxisMapping" type="integer">4 5</merge>
                <merge key="input.x11_options" type="string">CorePointer</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">it</merge>
        <!--    <merge key="input.xkb.variant" type="string">it</merge> -->
                <append key="input.xkb.options" type="strlist">compose:menu</append>
        </match>
        <match key="info.capabilities" contains="input">
                <match key="input.product" string="Logitech Logitech Extreme 3D">
                        <remove key="info.capabilities" type="strlist">input.mouse</remove>
                        <merge key="input.x11_driver" type="string">joystick</merge>
                </match>
        </match>
</device>
</deviceinfo>
and

Code: Select all

meldolion log # cat /etc/X11/xorg.conf
Section "Server Flags"
        Option "AutoAddDevices" "on"
        Option "AutoEnableDevices" "on"
        Option "AllowEmptyInput" "on"
EndSection

Section "ServerLayout"
        Identifier     "X.org Configured"
        Screen      0  "Screen0" 0 0
        #InputDevice    "Logitech MX700" "CorePointer"
        #InputDevice    "Keyboard0" "CoreKeyboard"
EndSection

Section "Files"
        FontPath     "/usr/share/fonts/misc/"
        FontPath     "/usr/share/fonts/TTF/"
        FontPath     "/usr/share/fonts/OTF"
        FontPath     "/usr/share/fonts/Type1/"
        FontPath     "/usr/share/fonts/100dpi/"
        FontPath     "/usr/share/fonts/75dpi/"
EndSection

Section "Module"
        Load  "xtrap"
        #Load  "dri"
        Load  "record"
        Load  "dbe"
        Load  "glx"
        Load  "wfb"
        #Load  "GLcore"
        Load  "extmod"
        #Load  "type1"
        #Load  "freetype"
EndSection

#Section "InputDevice"
        #Identifier  "Keyboard0"
        #Driver      "keyboard"
        #Option      "CoreKeyboard"
        #Option      "XkbRules"  "xorg"
        #Option      "XkbModel"  "pc105"
        #Option      "XkbLayout" "it"
#EndSection

#Section "InputDevice"
        #Identifier  "Logitech MX700"
        #Driver      "mouse"
        #Option      "CorePointer"
        #Option     "Protocol" "ExplorerPS/2"
        #Option     "Device" "/dev/input/mice"
        #Option      "Buttons" "10"
        #Option     "ZAxisMapping" "4 5"
#EndSection

Section "Monitor"
        Identifier   "Monitor0"
        VendorName   "Monitor Vendor"
        ModelName    "Monitor Model"
EndSection

Section "Device"
        Identifier  "Card0"
        Driver      "nvidia"
        VendorName  "nVidia Corporation"
        BoardName   "GeForce 7600 GS"
        BusID       "PCI:2:0:0"
        Option      "NvAGP"                         "1"
        Option      "RenderAccel"                   "True"
        Option      "Triplebuffer"                  "true"
        Option      "AddARGBGLXVisuals"             "True"
        Option      "AllowSHMPixmaps"               "False"
        Option      "BackingStore"                  "False"
        Option      "PixmapCacheSize"               "1000000"
EndSection

Section "Screen"
        Identifier "Screen0"
        Device     "Card0"
        Monitor    "Monitor0"
        DefaultDepth 24
        SubSection "Display"
                Viewport   0 0
                Depth     1
        EndSubSection
        SubSection "Display"
                Viewport   0 0
                Depth     4
        EndSubSection
        SubSection "Display"
                Viewport   0 0
                Depth     8
        EndSubSection
        SubSection "Display"
                Viewport   0 0
                Depth     15
        EndSubSection
        SubSection "Display"
                Viewport   0 0
                Depth     16
        EndSubSection
        SubSection "Display"
                Viewport   0 0
                Depth     24
        EndSubSection
EndSection

Section "Extensions"
        Option "Composite" "Enable"
Endsection

Section "dri"
        Mode 0666
EndSection
but if I perform a

Code: Select all

meldolion log # hal-find-by-capability --capability input.keyboard |xargs hal-device | more
udi = '/org/freedesktop/Hal/devices/platform_i8042_i8042_KBD_port_logicaldev_input'
  info.subsystem = 'input'  (string)
  input.xkb.rules = 'base'  (string)
  info.capabilities = { 'input', 'input.keyboard', 'input.keypad', 'input.keys', 'button' } (string list)
  info.product = 'AT Translated Set 2 keyboard'  (string)
  input.xkb.model = 'evdev'  (string)
  linux.sysfs_path = '/sys/class/input/input0/event0'  (string)
  info.udi = '/org/freedesktop/Hal/devices/platform_i8042_i8042_KBD_port_logicaldev_input'  (string)
  input.xkb.layout = 'us'  (string)
  info.parent = '/org/freedesktop/Hal/devices/platform_i8042_i8042_KBD_port'  (string)
  info.category = 'input'  (string)
  input.xkb.variant = ''  (string)
  input.x11_driver = 'evdev'  (string)
  linux.hotplug_type = 2  (0x2)  (int)
  linux.subsystem = 'input'  (string)
  input.originating_device = '/org/freedesktop/Hal/devices/platform_i8042_i8042_KBD_port'  (string)
  input.device = '/dev/input/event0'  (string)
  linux.device_file = '/dev/input/event0'  (string)
  input.product = 'AT Translated Set 2 keyboard'  (string)
  info.addons.singleton = { 'hald-addon-input' } (string list)
I still see a input.xkb.layout = 'us' (string) setting
is that correct?

Also, before logging into kde, the xdm keyboard seems set to us...

thanks
Luca
Top
VoidMage
Watchman
Watchman
User avatar
Posts: 6196
Joined: Sat Oct 14, 2006 8:43 am

  • Quote

Post by VoidMage » Fri Apr 03, 2009 2:49 pm

There's a chance your fdi file is rejected cause integer is not
among allowed value types.
Also, I'm not sure if a key type input.x11_options (that you used for CorePointer)
is correct.
Top
meldolion
n00b
n00b
Posts: 22
Joined: Wed Sep 07, 2005 10:56 am

  • Quote

Post by meldolion » Fri Apr 03, 2009 2:58 pm

VoidMage wrote:There's a chance your fdi file is rejected cause integer is not
among allowed value types.
Also, I'm not sure if a key type input.x11_options (that you used for CorePointer)
is correct.
you mean the integer values I put in mouse section? What types should they have to be?

And BTW How Can i tell if my fdi is rejected?

thanks

EDIT: Solved! you were right about the integer type not allowed, now that I put string type my fdi was accepted and also disappeared some Xorg error about the joystick...


Thank you

Luca
Top
mwoodiupui
n00b
n00b
User avatar
Posts: 50
Joined: Wed Oct 13, 2004 9:46 pm
Location: Indianapolis, IN, USA

Where is this stuff DOCUMENTED?

  • Quote

Post by mwoodiupui » Mon Apr 06, 2009 8:17 pm

Is there documentation somewhere on just what HAL keys the xorg server looks for? Like, someone's suggested .fdi for a Synaptics pad included <merge key="input.x11_options.TapButton1" type="string" >1</merge>. I guess that the man page for the driver tells you what TapButton1 means and what values it takes and what they mean. But how are we to know that it will ask HAL for input.x11_options.* and that this is (apparently) equivalent to Options "TapButton1" = "1" in xorg.conf? Where is the mapping between xorg.conf entries and HAL keys defined? Then we could stop guessing and all the cut'n'try, and perhaps actually know what we are doing.
Top
VoidMage
Watchman
Watchman
User avatar
Posts: 6196
Joined: Sat Oct 14, 2006 8:43 am

  • Quote

Post by VoidMage » Mon Apr 06, 2009 8:56 pm

In the upgrade guide, mentioned in this thread and in the upgrade news,
there's a link:
http://cgit.freedesktop.org/xorg/xserve ... -input.fdi
I think it fully documents the general case.
For driver-specific options, check the driver's manpage.
Top
sl70
Guru
Guru
User avatar
Posts: 459
Joined: Tue Jun 18, 2002 10:31 pm
Location: Saitama, JP

  • Quote

Post by sl70 » Mon Apr 06, 2009 9:40 pm

I followed the xorg-server upgrade guide, and am now running version 1.5.3-r5. Everything works OK, but the display seems to be REALLY slowed down. I can clearly see the window repaint itself when scrolling or moving the window. It wasn't this way before.

I have a Dell Optiplex GX620 with an Intel 945G graphics chip, with the ``intel'' driver. glxgears runs at about 250 FPS. (Don't know what it was before.) I've turned off composite and dri. I don't know what else to do. Any suggestions?
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 Apr 06, 2009 10:59 pm

Can you post your new /etc/X11/xorg.conf plz ?
Top
rasmus
Tux's lil' helper
Tux's lil' helper
Posts: 79
Joined: Sun Jul 14, 2002 6:14 am

  • Quote

Post by rasmus » Mon Apr 06, 2009 11:05 pm

How do I get my mouse wheel working? It used to look like this

Code: Select all

Section "InputDevice"
	Identifier  "Mouse1"
	Driver      "mouse"
	Option	    "Protocol" "ExplorerPS/2"
	Option	    "Device" "/dev/input/mice"
	Option	    "Buttons"	"8"
	Option	    "ZAxisMapping" "7 8"
	Option	    "Emulate3Buttons" "no"
	Option      "Resolution" "100"
	Option	    "samplerate" "800"
EndSection
But now I've gotten rid of xorg.conf. Now it only flips between tabs and scrolling with the wheel doesn't work anymore. I've done a /etc/hal/fdi/policy/10-x11-input.fdi file, and right now it looks like this:

Code: Select all

<?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>
                <merge key="input.x11_options.Buttons" type="string">8</merge>
                <merge key="input.x11_options.ZAxisMapping" type="string">6 7</merge>
                <merge key="input.x11_options.XAxisMapping" type="string">4 8</merge>
                <merge key="input.x11_options" type="string">CorePointer</merge>
        </match>
</device>
</deviceinfo>
I've tried various X- Y- and Z-axis mappings, but it makes no difference at all. xev says that the wheel generates button 6 and 7, and tilting it gives 4 and 8. I tried adding options.Protocol, but that didn't do anything either.
Unplugging and replugging gives this info in /var/log/xorg.0.log:

Code: Select all

(EE) Logitech USB Receiver: Read error: No such device
(II) config/hal: removing device Logitech USB Receiver
(II) Logitech USB Receiver: Close
(II) UnloadModule: "evdev"
(EE) Logitech USB Receiver: Read error: No such device
(II) config/hal: removing device Logitech USB Receiver
(II) Logitech USB Receiver: Close
(II) UnloadModule: "evdev"
(II) config/hal: Adding input device Logitech USB Receiver
(**) Logitech USB Receiver: always reports core events
(**) Logitech USB Receiver: Device: "/dev/input/event1"
(II) Logitech USB Receiver: Found 16 mouse buttons
(II) Logitech USB Receiver: Found x and y relative axes
(II) Logitech USB Receiver: Configuring as mouse
(**) Option "YAxisMapping" "6 7"
(**) Logitech USB Receiver: YAxisMapping: buttons 6 and 7
(**) Option "XAxisMapping" "4 8"
(**) Logitech USB Receiver: XAxisMapping: buttons 4 and 8
(**) Logitech USB Receiver: EmulateWheelButton: 4, EmulateWheelInertia: 10, EmulateWheelTimeout: 200
(II) XINPUT: Adding extended input device "Logitech USB Receiver" (type: MOUSE)
(II) config/hal: Adding input device Logitech USB Receiver
(**) Logitech USB Receiver: always reports core events
(**) Logitech USB Receiver: Device: "/dev/input/event2"
(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)
hal-find-by-capability --capability input.mouse|xargs hal-device gives me this:

Code: Select all

udi = '/org/freedesktop/Hal/devices/usb_device_46d_c521_noserial_if0_logicaldev_input'
  input.product = 'Logitech USB Receiver'  (string)
  info.category = 'input'  (string)
  linux.sysfs_path = '/sys/class/input/input29/event1'  (string)
  info.capabilities = { 'input', 'input.mouse' } (string list)
  info.subsystem = 'input'  (string)
  info.parent = '/org/freedesktop/Hal/devices/usb_device_46d_c521_noserial_if0'  (string)
  info.product = 'Logitech USB Receiver'  (string)
  info.udi = '/org/freedesktop/Hal/devices/usb_device_46d_c521_noserial_if0_logicaldev_input'  (string)
  linux.hotplug_type = 2  (0x2)  (int)
  input.x11_driver = 'evdev'  (string)
  linux.subsystem = 'input'  (string)
  linux.device_file = '/dev/input/event1'  (string)
  input.x11_options.buttons = '8'  (string)
  input.x11_options.YAxisMapping = '6 7'  (string)
  input.originating_device = '/org/freedesktop/Hal/devices/usb_device_46d_c521_noserial_if0'  (string)
  input.x11_options.XAxisMapping = '4 8'  (string)
  input.device = '/dev/input/event1'  (string)
  input.x11_options = 'CorePointer'  (string)
Was anything in the upgrade guide supposed to help me with this? Or am I the only one who gives a damn about the wheel?
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 Apr 06, 2009 11:08 pm

Hi, can you try without any .fdi file.

Also, if it's not working, you should try this one :

Code: Select all

<?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> 
                <merge key="input.x11_options.Buttons" type="string">8</merge> 
                <merge key="input.x11_options.ZAxisMapping" type="string">6,7</merge> 
                <merge key="input.x11_options.XAxisMapping" type="string">4,8</merge> 
        </match> 
</device> 
</deviceinfo>
Top
VoidMage
Watchman
Watchman
User avatar
Posts: 6196
Joined: Sat Oct 14, 2006 8:43 am

  • Quote

Post by VoidMage » Mon Apr 06, 2009 11:23 pm

Following evdev manpage, there doesn't seem to be
a ZAxisMapping, however the separator seems to be space, not comma.
However, there seems to be a SwapAxes setting.
Top
rasmus
Tux's lil' helper
Tux's lil' helper
Posts: 79
Joined: Sun Jul 14, 2002 6:14 am

  • Quote

Post by rasmus » Mon Apr 06, 2009 11:59 pm

d2_racing wrote:Hi, can you try without any .fdi file.

Also, if it's not working, you should try this one :

Code: Select all

<?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> 
                <merge key="input.x11_options.Buttons" type="string">8</merge> 
                <merge key="input.x11_options.ZAxisMapping" type="string">6,7</merge> 
                <merge key="input.x11_options.XAxisMapping" type="string">4,8</merge> 
        </match> 
</device> 
</deviceinfo>
Thanks for the quick response. The first thing I tried was not unsing an .fdi at all, it was only when that didn't work that I started to fiddle with them. And the separator was space, but I'm not sure if X cares at all.
Top
VoidMage
Watchman
Watchman
User avatar
Posts: 6196
Joined: Sat Oct 14, 2006 8:43 am

  • Quote

Post by VoidMage » Tue Apr 07, 2009 1:10 am

Are you sure you're setting correct button values ?
As evdev doesn't have Buttons option, they may have different numbers.
Top
sl70
Guru
Guru
User avatar
Posts: 459
Joined: Tue Jun 18, 2002 10:31 pm
Location: Saitama, JP

  • Quote

Post by sl70 » Tue Apr 07, 2009 2:41 am

@d2_racing:
Thanks for your help. Here's my xorg.conf (with comments removed):

Code: Select all

Section "Module"
    Load        "dbe"   # Double buffer extension
    SubSection  "extmod"
      Option    "omit xfree86-dga"   # don't initialise the DGA extension
    EndSubSection
    Load       "glx"
    Load  "record"
    Load  "xtrap"
EndSection
Section "Files"
FontPath "/usr/share/fonts/ttf-bitstream-vera"
FontPath "/usr/share/fonts/util"
FontPath "/usr/share/fonts/encodings"
FontPath "/usr/share/fonts/encodings/large"
FontPath "/usr/share/fonts/75dpi"
FontPath "/usr/share/fonts/100dpi"
FontPath "/usr/share/fonts/cyrillic"
FontPath "/usr/share/fonts/misc"
FontPath "/usr/share/fonts/Type1"
FontPath "/usr/share/fonts/libdockapp-fonts"
FontPath "/usr/share/fonts/libdockapp-fonts/dockapp"
FontPath "/usr/share/fonts/cjkuni-fonts"
FontPath "/usr/share/fonts/baekmuk-fonts"
FontPath "/usr/share/fonts/artwiz"
FontPath "/usr/share/fonts/freefont"
FontPath "/usr/share/fonts/unifont"
FontPath "/usr/share/fonts/afms"
FontPath "/usr/share/fonts/afms/adobe"
FontPath "/usr/share/fonts/kochi-substitute"
FontPath "/usr/share/fonts/default"
FontPath "/usr/share/fonts/default/ghostscript"
FontPath "/usr/share/fonts/arphicfonts"
FontPath "/usr/share/fonts/corefonts"
FontPath "/usr/share/fonts/aquapfont"
FontPath "/usr/share/fonts/intlfonts"
FontPath "/usr/share/fonts/jisx0213"
FontPath "/usr/share/fonts/sharefonts"
FontPath "/usr/share/fonts/terminus"
FontPath "/usr/share/fonts/urw-fonts"
EndSection
Section "ServerFlags"
        
Option "AutoAddDevices" "on"
Option "AutoEnableDevices" "on"
Option "AllowEmptyInput" "on"

EndSection
Section "Monitor"
    Identifier  "My Monitor"
        DisplaySize     408 306
        HorizSync       31-80
        VertRefresh     56-76
        Option          "DPMS"
EndSection

Section "Device"
    Identifier  "Standard VGA"
    VendorName  "Unknown"
    BoardName   "Unknown"
    Driver     "vga"
EndSection


Section "Device"
    Identifier  "** Intel i810 (generic)               [i810]"
    Driver      "intel"
    VideoRam    262144
EndSection



Section "Screen"
    Identifier  "Screen 1"
    Device      "** Intel i810 (generic)               [i810]"
    Monitor     "My Monitor"
    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
        Virtual     2560 1024
    EndSubsection
EndSection
        
Section "ServerLayout"
    Identifier  "Simple Layout"
    Screen "Screen 1"
EndSection

Section "Extensions"
EndSection
    
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 Apr 07, 2009 10:37 am

Hi, can you try without this options :

Code: Select all

Option "AutoAddDevices" "on" 
Option "AutoEnableDevices" "on" 
Option "AllowEmptyInput" "on
Top
pizzach
Apprentice
Apprentice
User avatar
Posts: 195
Joined: Mon Aug 28, 2006 8:55 pm

  • Quote

Post by pizzach » Tue Apr 07, 2009 11:39 am

rasmus, the scrolling on my synaptics didn't work right until I explicitly added:

Code: Select all

  <merge key="input.x11_options" type="string">CorePointer</merge> 
I recommend you try the same for your mouse. I wish the examples actually included the line (but commented out). It would have saved me a lot of pain.
Top
sl70
Guru
Guru
User avatar
Posts: 459
Joined: Tue Jun 18, 2002 10:31 pm
Location: Saitama, JP

  • Quote

Post by sl70 » Tue Apr 07, 2009 1:30 pm

d2_racing wrote:Hi, can you try without this options :

Code: Select all

Option "AutoAddDevices" "on" 
Option "AutoEnableDevices" "on" 
Option "AllowEmptyInput" "on
Tried it. Didn't really change anything.
Top
rickj
Guru
Guru
User avatar
Posts: 432
Joined: Thu Feb 06, 2003 8:30 pm
Location: Calgary, Alberta, Canada
Contact:
Contact rickj
Website

  • Quote

Post by rickj » Tue Apr 07, 2009 3:25 pm

The devs have done a great job. This upgrade is really smooth (or at least, it can be).

I upgraded today, after 1.5.3 xorg went stable. Recompiled the kernel for evdev support, deleted dri USE flag, started hald (and put it into rc-update), re-merged the drivers found with "qlist -I -C x11-drivers/", moved aside my xorg.conf into xorg.conf.old, and it all just worked. Even the mouse wheel works.

Thanks to all who have put in the effort to make this happen.
Top
Post Reply

398 posts
  • Page 6 of 16
    • Jump to page:
  • Previous
  • 1
  • …
  • 4
  • 5
  • 6
  • 7
  • 8
  • …
  • 16
  • 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