Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
xorg-server-1.5.3 input problems [RESOLVED]
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
skrapasor
Tux's lil' helper
Tux's lil' helper


Joined: 28 Jul 2008
Posts: 92

PostPosted: Sat May 02, 2009 11:04 pm    Post subject: xorg-server-1.5.3 input problems [RESOLVED] Reply with quote

My mouse and keyboard don't work. I built it with hal and am trying to use hal because that seems to be preferred. Here is my xorg.conf:
Code:

skrapasor@gentoo-desktop ~ $ cat /etc/X11/xorg.conf
Section "ServerLayout"
        Identifier     "Layout0"
        Screen      0  "Screen0" 0 0
        InputDevice    "Keyboard0" "CoreKeyboard"
    InputDevice    "Mouse0" "CorePointer"
EndSection

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

Section "InputDevice"
        Identifier  "Mouse0"
        Driver      "mouse"
        Option      "Protocol" "Auto"
        Option      "Emulate3Buttons"
        Option      "Device" "/dev/input/mice"
EndSection

Section "InputDevice"
        Identifier  "Keyboard0"
        Driver      "kbd"
        Option      "XkbModel" "pc101"
        Option      "XkbLayout" "us"
EndSection

Section "Monitor"
        Identifier   "Monitor0"
        HorizSync    31.5 - 48.5
        VertRefresh  50.0 - 70.0
EndSection

Section "Device"
        Identifier  "Card0"
        Driver      "intel"
        Card        "** Intel i810 (generic)               [i810]"
EndSection

Section "Screen"
        Identifier "Screen0"
        Device     "Card0"
        Monitor    "Monitor0"
        DefaultDepth     8
        SubSection "Display"
                Viewport   0 0
                Depth     8
                Modes    "1024x768"
        EndSubSection
EndSection


and here is my hal input stuff:

Code:

skrapasor@gentoo-desktop ~ $ cat /etc/hal/fdi/policy/10-xinput-configuration.fdi <?xml version="1.0" encoding="UTF-8"?>
<deviceinfo version="0.2">
   <match key="info.capabilities" contains="input.keyboard">
      <merge key="input.x11_driver" type="string">kbd</merge>
   </match>
   <match key="info.capabilities" contains="input.mouse">
      <merge key="input.x11_driver" type="string">mouse</merge>
   </match>
</deviceinfo>


Also, my colors look pretty crappy. I think it's because I selected 8-bit color. What do I need to change to make it better? I'm thinking my monitor can support 24-bit. Do I just need to change both 8s in my xorg.conf to 24?


Last edited by skrapasor on Tue May 05, 2009 10:14 pm; edited 2 times in total
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7651
Location: Goose Creek SC

PostPosted: Sun May 03, 2009 12:00 am    Post subject: Reply with quote

What is your video card??

Run
Code:
lspci | grep -i vga
to identify.

In the meantime:
in /etc/make.conf
Quote:
INPUT_DEVICES="keyboard mouse evdev"


in kernel config file:
Quote:
Device Drivers --->
Input device support --->
-*- Generic input layer (needed for keyboard, mouse, ...)
-*- Support for memoryless force-feedback devices
<*> Polled input device skeleton
*** Userland interfaces ***
-*- Mouse interface
[*] Provide legacy /dev/psaux device
(1024) Horizontal screen resolution
(768) Vertical screen resolution
< > Joystick interface
<*> Event interface #critical
< > Event debugging
*** Input Device Drivers ***
-*- Keyboards --->
[*] Mice --->
[ ] Joysticks/Gamepads --->
[ ] Tablets --->
[ ] Touchscreens --->
[ ] Miscellaneous devices --->
Hardware I/O ports --->


recompile and reinstall kernel if "<*> Event interface" had to be added

Run:
Code:
emerge dbus hal
rc-update add dbus boot
rc-update add hald boot
rename /etc/X11/xorg.conf /etc/X11/xorg.conf.bak # you should not need xorg.conf
Back to top
View user's profile Send private message
skrapasor
Tux's lil' helper
Tux's lil' helper


Joined: 28 Jul 2008
Posts: 92

PostPosted: Sun May 03, 2009 1:51 am    Post subject: Reply with quote

Thanks for you response! My kernel already has that, I already have dbus and hal, and my input devices section was already like that. I have tried without an xorg.conf, and that doesn't work at all! Here is my (integrated) video card:

Code:
00:02.0 VGA compatible controller: Intel Corporation 82865G Integrated Graphics Controller (rev 02)
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7651
Location: Goose Creek SC

PostPosted: Sun May 03, 2009 2:38 am    Post subject: Reply with quote

Code:
/etc/init.d/hald status
/etc/init.d/dbus status
shows started?

I'm not intel video, did get lucky with one once, you might try a config like:

Bus options (PCI etc.) --->
[*] Enable deprecated pci_find_* API
Graphics support --->
-*- /dev/agpgart (AGP Support) --->
--- /dev/agpgart (AGP Support)
<m> Intel 440LX/BX/GX, I8xx and E7x05 chipset support
< > SiS chipset support
< > VIA chipset support
<m> Direct Rendering Manager (XFree86 4.1.0 and higher DRI support) --->
--- Direct Rendering Manager (XFree86 4.1.0 and higher DRI support)
< > 3dfx Banshee/Voodoo3+
< > ATI Rage 128
< > ATI Radeon
<m> Intel I810
<m> Intel 830M, 845G, 852GM, 855GM, 865G (i915 driver) --->
[ ] Enable modesetting on intel by default
< > Matrox g200/g400< > SiS video cards
< > Via unichrome video cards
< > Savage video cards
< > Lowlevel video output switch controls
-*- Support for frame buffer devices --->
--- Support for frame buffer devices
[m] Enable firmware EDID
[ ] Framebuffer foreign endianness support --->
-*- Enable Video Mode Handling Helpers
[*] Enable Tile Blitting Support
*** Frame buffer hardware drivers ***
< > Cirrus Logic support
< > Permedia2 support
< > CyberPro 2000/2010/5000 support
< > Arc Monochrome LCD board support
[ ] Asiliant (Chips) 69000 display support
[ ] IMS Twin Turbo display support
< > VGA 16-color graphics support
<m> Userspace VESA VGA graphics support
[*] VESA VGA graphics support
[ ] EFI-based Framebuffer Support
< > N411 Apollo/Hecuba devkit support
< > Hercules mono graphics support
< > Epson S1D13XXX framebuffer support
< > nVidia Framebuffer Support
< > nVidia Riva support
<m> Intel LE80578 (Vermilion) support
<m> Intel 830M/845G/852GM/855GM/865G/915G/945G/945GM/965G/965GM support (EXPERIMENTAL)
< > Matrox acceleration
< > ATI Radeon display support
< > ATI Rage128 display support
< > ATI Mach64 display support
< > S3 Trio/Virge support
< > S3 Savage support
< > SiS/XGI display support
< > VIA UniChrome (Pro) and Chrome9 display support
< > NeoMagic display support
< > IMG Kyro support
< > 3Dfx Banshee/Voodoo3/Voodoo5 display support
< > 3Dfx Voodoo Graphics (sst1) support
< > VIA VT8623 support
< > Trident support
< > ARK 2000PV support
< > Permedia3 support (EXPERIMENTAL)
< > Fujitsu carmine frame buffer support
[ ] AMD Geode family framebuffer support (EXPERIMENTAL)
< > Virtual Frame Buffer support (ONLY FOR TESTING!)
< > E-Ink Metronome/8track controller support
< > Fujitsu MB862xx GDC support
--- Backlight & LCD device support
< > Lowlevel LCD controls
< > Lowlevel Backlight controls
< > Generic (aka Sharp Corgi) Backlight Driver
< > Frontpath ProGear Backlight Driver
< > MacBook Pro Nvidia Backlight Driver
< > Tabletkiosk Sahara Touch-iT Backlight Driver
< > Display panel/monitor support
*** Display hardware drivers ***
Console display driver support --->
-*- VGA text console
[*] Enable Scrollback Buffer in System RAM
(64) Scrollback Buffer Size (in KB)
<*> Framebuffer Console support
[ ] Map the console to the primary display device
[ ] Framebuffer Console Rotation
[ ] Select compiled-in fonts
[*] Bootup logo --->

Code:
emerge --search xf86-video-intel

already installed?? if not
Code:
emerge xf86-video-intel


If none of this helps suggest post content of /var/log/xorg.0.log after startx.
Back to top
View user's profile Send private message
VoidMage
Watchman
Watchman


Joined: 14 Oct 2006
Posts: 6196

PostPosted: Sun May 03, 2009 2:39 am    Post subject: Reply with quote

Check your xorg log, but probably you should drop your fdi file
and check if xf86-input-evdev is really emerged.
xorg-server disables 'mouse' and 'kbd' drivers on linux,
if it can use hal.
Back to top
View user's profile Send private message
skrapasor
Tux's lil' helper
Tux's lil' helper


Joined: 28 Jul 2008
Posts: 92

PostPosted: Sun May 03, 2009 5:07 am    Post subject: Reply with quote

What are you saying? Yes, I have that package emerged. I don't see why I should remove my fdi though... ? My log should be helpful:
Code:

config/hal: Adding input device ImPS/2 Generic Wheel Mouse
LoadModule: "mouse"

Loading /usr/lib/xorg/modules/input//mouse_drv.so
n: /usr/lib/xorg/modules/input//mouse_drv.so: undefined symbol: miPointerGetMotionEvents
Failed to load /usr/lib/xorg/modules/input//mouse_drv.so
UnloadModule: "mouse"
Failed to load module "mouse" (loader failed, 7)
No input driver matching `mouse'
config/hal: NewInputDeviceRequest failed
config/hal: Adding input device AT Translated Set 2 keyboard
LoadModule: "kbd"

Loading /usr/lib/xorg/modules/input//kbd_drv.so
Module kbd: vendor="X.Org Foundation"
   compiled for 1.5.3, module version = 1.3.2
   Module class: X.Org XInput Driver
   ABI class: X.Org XInput driver, version 2.1
AT Translated Set 2 keyboard: always reports core events
Option "Protocol" "standard"
AT Translated Set 2 keyboard: Protocol: standard
Option "Device" "/dev/input/event2"
Option "AutoRepeat" "500 30"
Option "XkbRules" "base"
AT Translated Set 2 keyboard: XkbRules: "base"
Option "XkbModel" "evdev"
AT Translated Set 2 keyboard: XkbModel: "evdev"
Option "XkbLayout" "us"
AT Translated Set 2 keyboard: XkbLayout: "us"
Option "CustomKeycodes" "off"
AT Translated Set 2 keyboard: CustomKeycodes disabled
XINPUT: Adding extended input device "AT Translated Set 2 keyboard" (type: KEYBOARD)


The new lines are misleading, the log has a crappy way of grouping the lines...
Back to top
View user's profile Send private message
skrapasor
Tux's lil' helper
Tux's lil' helper


Joined: 28 Jul 2008
Posts: 92

PostPosted: Sun May 03, 2009 5:22 am    Post subject: Reply with quote

I think I can tell from the log that my keyboard actually does work.
Back to top
View user's profile Send private message
skrapasor
Tux's lil' helper
Tux's lil' helper


Joined: 28 Jul 2008
Posts: 92

PostPosted: Sun May 03, 2009 5:38 am    Post subject: Reply with quote

Now I have re-emerged xf86-input-dev, and the xorg log is like this at the end:
Code:
(II) ImPS/2 Generic Wheel Mouse: Setting mouse protocol to "PS/2"
(II) ImPS/2 Generic Wheel Mouse: Setting mouse protocol to "PS/2"
(II) ImPS/2 Generic Wheel Mouse: Setting mouse protocol to "PS/2"
(II) ImPS/2 Generic Wheel Mouse: Setting mouse protocol to "PS/2"
(II) ImPS/2 Generic Wheel Mouse: Setting mouse protocol to "PS/2"
(II) ImPS/2 Generic Wheel Mouse: Setting mouse protocol to "PS/2"
(II) ImPS/2 Generic Wheel Mouse: Setting mouse protocol to "PS/2"
(II) ImPS/2 Generic Wheel Mouse: Setting mouse protocol to "PS/2"
(II) ImPS/2 Generic Wheel Mouse: Setting mouse protocol to "PS/2"
(II) ImPS/2 Generic Wheel Mouse: Setting mouse protocol to "PS/2"
(II) ImPS/2 Generic Wheel Mouse: Setting mouse protocol to "PS/2"
(II) ImPS/2 Generic Wheel Mouse: Setting mouse protocol to "PS/2"
(II) ImPS/2 Generic Wheel Mouse: Setting mouse protocol to "PS/2"
(II) ImPS/2 Generic Wheel Mouse: Setting mouse protocol to "PS/2"
(II) ImPS/2 Generic Wheel Mouse: Setting mouse protocol to "PS/2"
(II) ImPS/2 Generic Wheel Mouse: Setting mouse protocol to "PS/2"
(II) ImPS/2 Generic Wheel Mouse: Setting mouse protocol to "PS/2"
(II) ImPS/2 Generic Wheel Mouse: Setting mouse protocol to "PS/2"
(II) ImPS/2 Generic Wheel Mouse: Setting mouse protocol to "PS/2"
(II) ImPS/2 Generic Wheel Mouse: Setting mouse protocol to "PS/2"
(II) ImPS/2 Generic Wheel Mouse: Setting mouse protocol to "PS/2"
(II) ImPS/2 Generic Wheel Mouse: Setting mouse protocol to "PS/2"
(II) ImPS/2 Generic Wheel Mouse: Setting mouse protocol to "PS/2"
(II) ImPS/2 Generic Wheel Mouse: Setting mouse protocol to "PS/2"
(II) ImPS/2 Generic Wheel Mouse: Setting mouse protocol to "PS/2"
(II) ImPS/2 Generic Wheel Mouse: Setting mouse protocol to "PS/2"
(II) ImPS/2 Generic Wheel Mouse: Setting mouse protocol to "PS/2"
(II) ImPS/2 Generic Wheel Mouse: Setting mouse protocol to "PS/2"
(II) ImPS/2 Generic Wheel Mouse: Setting mouse protocol to "PS/2"
(II) ImPS/2 Generic Wheel Mouse: Setting mouse protocol to "PS/2"
(II) ImPS/2 Generic Wheel Mouse: Setting mouse protocol to "PS/2"
(II) ImPS/2 Generic Wheel Mouse: Setting mouse protocol to "PS/2"
(II) ImPS/2 Generic Wheel Mouse: Setting mouse protocol to "PS/2"
(II) ImPS/2 Generic Wheel Mouse: Setting mouse protocol to "PS/2"
(II) ImPS/2 Generic Wheel Mouse: Setting mouse protocol to "PS/2"
(II) ImPS/2 Generic Wheel Mouse: Setting mouse protocol to "PS/2"
(II) ImPS/2 Generic Wheel Mouse: Setting mouse protocol to "PS/2"
(II) ImPS/2 Generic Wheel Mouse: Setting mouse protocol to "PS/2"
(II) ImPS/2 Generic Wheel Mouse: Setting mouse protocol to "PS/2"
(II) ImPS/2 Generic Wheel Mouse: Setting mouse protocol to "PS/2"
(II) ImPS/2 Generic Wheel Mouse: Setting mouse protocol to "PS/2"
(II) ImPS/2 Generic Wheel Mouse: Setting mouse protocol to "PS/2"
(II) ImPS/2 Generic Wheel Mouse: Setting mouse protocol to "PS/2"
(II) ImPS/2 Generic Wheel Mouse: Setting mouse protocol to "PS/2"
(II) ImPS/2 Generic Wheel Mouse: Setting mouse protocol to "PS/2"
(II) ImPS/2 Generic Wheel Mouse: Setting mouse protocol to "PS/2"
(II) ImPS/2 Generic Wheel Mouse: Setting mouse protocol to "PS/2"
(II) ImPS/2 Generic Wheel Mouse: Setting mouse protocol to "PS/2"
(II) ImPS/2 Generic Wheel Mouse: Setting mouse protocol to "PS/2"
(II) ImPS/2 Generic Wheel Mouse: Setting mouse protocol to "PS/2"
(II) ImPS/2 Generic Wheel Mouse: Setting mouse protocol to "PS/2"


the mouse part looks okay though:

Code:

(II) config/hal: Adding input device ImPS/2 Generic Wheel Mouse
(II) LoadModule: "mouse"

(II) Loading /usr/lib/xorg/modules/input//mouse_drv.so
(II) Module mouse: vendor="X.Org Foundation"
        compiled for 1.5.3, module version = 1.4.0
        Module class: X.Org XInput Driver
        ABI class: X.Org XInput driver, version 2.1
(**) Option "Device" "/dev/input/event3"
(II) ImPS/2 Generic Wheel Mouse: Setting mouse protocol to "PS/2"
(**) ImPS/2 Generic Wheel Mouse: Device: "/dev/input/event3"
(==) ImPS/2 Generic Wheel Mouse: Protocol: "Auto"
(**) ImPS/2 Generic Wheel Mouse: always reports core events
(**) Option "Device" "/dev/input/event3"
(==) ImPS/2 Generic Wheel Mouse: Emulate3Buttons, Emulate3Timeout: 50
(**) ImPS/2 Generic Wheel Mouse: ZAxisMapping: buttons 4 and 5
(**) ImPS/2 Generic Wheel Mouse: Buttons: 9
(**) ImPS/2 Generic Wheel Mouse: Sensitivity: 1
(II) XINPUT: Adding extended input device "ImPS/2 Generic Wheel Mouse" (type: MOUSE)
(II) ImPS/2 Generic Wheel Mouse: Setting mouse protocol to "PS/2"


and even before all that it says:
Code:

(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.


but I think that just means I'm using hal instead of xorg.conf. And since my first post I have commented out the input options in xorg.conf, thinking that would let hal do its job.
Back to top
View user's profile Send private message
jaimez
n00b
n00b


Joined: 26 Apr 2009
Posts: 2

PostPosted: Sun May 03, 2009 8:39 am    Post subject: Reply with quote

for 24bit color you need to change both DefaultDepth and Depth vaules in Screen section to 24 and it will always use 24bit colors
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7651
Location: Goose Creek SC

PostPosted: Sun May 03, 2009 2:19 pm    Post subject: Reply with quote

You said:
Quote:
I don't see why I should remove my fdi though... ?


On my 2 working 1.5.3 xorg (under hal) setups; /etc/hal/fdi/information is empty, /etc/hal/fdi/policy is empty, /etc/hal/fdi/preprobe; are empty directories. Second the motion to kill yours.

In one case I have no xorg.conf.
In the other I have nvidia-xconfig generated xorg.conf.
Back to top
View user's profile Send private message
d2_racing
Bodhisattva
Bodhisattva


Joined: 25 Apr 2005
Posts: 13047
Location: Ste-Foy,Canada

PostPosted: Sun May 03, 2009 3:31 pm    Post subject: Reply with quote

Hi, your /etc/X11/xorg.conf should be like this :

Code:

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

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

Section "Monitor"
        Identifier   "Monitor0"
        HorizSync    31.5 - 48.5
        VertRefresh  50.0 - 70.0
EndSection

Section "Device"
        Identifier  "Card0"
        Driver      "intel"
EndSection

Section "Screen"
        Identifier "Screen0"
        Device     "Card0"
        Monitor    "Monitor0"
EndSection
Back to top
View user's profile Send private message
skrapasor
Tux's lil' helper
Tux's lil' helper


Joined: 28 Jul 2008
Posts: 92

PostPosted: Sun May 03, 2009 4:29 pm    Post subject: Reply with quote

So does hal work without that stuff? I was just following this guide: http://www.gentoo.org/proj/en/desktop/x/x11/xorg-server-1.5-upgrade-guide.xml
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7651
Location: Goose Creek SC

PostPosted: Sun May 03, 2009 4:50 pm    Post subject: Reply with quote

The default is empty policy. Works that way for me. No further knowledge, have not tried to modify hal behavior.
Back to top
View user's profile Send private message
skrapasor
Tux's lil' helper
Tux's lil' helper


Joined: 28 Jul 2008
Posts: 92

PostPosted: Sun May 03, 2009 5:00 pm    Post subject: Reply with quote

Thanks! Yes now my input works, but if I change my color from 8 to 16 or 24, it just doesn't work. I get some random weird lines on my screen after I startx. I know my monitor can do better than 8, it used to.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments 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