Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
X11 starts, but no mouse and no keyboard
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

Goto page 1, 2  Next  
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
rudregues
Apprentice
Apprentice


Joined: 29 Jan 2013
Posts: 231
Location: Brazil

PostPosted: Thu Feb 07, 2013 3:37 am    Post subject: X11 starts, but no mouse and no keyboard Reply with quote

When I startx, it enters to a screen with two xterm windows. I can't use touchpad or keyboard. I hit some key and nothing happens. Unique thing I archived is alt+prtsc+b, then the system reboot.

output of modprobe fglrx
Quote:
modprobe: FATAL: Module fglrx not found.

output of grep -c fglrx /lib/modules/3.6.11-gentoo/{modules.alias,modules.dep}
Quote:
/lib/modules/3.6.11-gentoo/modules.alias:0
/lib/modules/3.6.11-gentoo/modules.dep:0


/var/log/Xorg.0.log http://pastebin.com/vEmd4z1L

[ ]'s
_________________
Emerging en gentoo
Back to top
View user's profile Send private message
BillWho
Veteran
Veteran


Joined: 03 Mar 2012
Posts: 1600
Location: US

PostPosted: Thu Feb 07, 2013 4:42 am    Post subject: Reply with quote

rudregues,

I looks like it didn't compile or depmod wasn't run :?

Code:
find /lib/modules/$(uname -r)/ -type f -iname fglr*

If it shows up try depmod -a

if not emerge x11-drivers/ati-drivers|tee fglrx.txt and wgetpaste that file

Also check your INPUT_DEVICES= in make.conf
_________________
Good luck :wink:

Since installing gentoo, my life has become one long emerge :)
Back to top
View user's profile Send private message
rudregues
Apprentice
Apprentice


Joined: 29 Jan 2013
Posts: 231
Location: Brazil

PostPosted: Thu Feb 07, 2013 5:37 am    Post subject: Reply with quote

BillWho wrote:
find /lib/modules/$(uname -r)/ -type f -iname fglr*

returned the /path/.../fglrx.ko
(I normally chrooted Gentoo environment from Sabayon, do you think this affect some operations with X11 etc? This command worked only in Gentoo text mode, chrooted environment give me an error)


BillWho wrote:
If it shows up try depmod -a

It worked, after this command I become ablle to load the module with modprobe. And a different thing occurs when I startx. Instead of the strange environment with the two xterms, it enters fluxbox minimal desktop. But I'm not able to use touchpad or keyboard. Unique thing works is ALT+PrtSc+B.


BillWho wrote:
Also check your INPUT_DEVICES= in make.conf

my /etc/make.conf:
INPUT_DEVICES="evdev keyboard mouse synaptics"


[ ]'s
_________________
Emerging en gentoo
Back to top
View user's profile Send private message
rudregues
Apprentice
Apprentice


Joined: 29 Jan 2013
Posts: 231
Location: Brazil

PostPosted: Thu Feb 07, 2013 5:53 am    Post subject: Reply with quote

Searching I've found two threads like mine:
https://forums.gentoo.org/viewtopic-p-6793842.html
https://forums.gentoo.org/viewtopic-t-883988-highlight-keyboard.html
And many guys used this command:
Code:
emerge -1av $(qlist -IC x11-drivers/)


So I tried, but the result was very strange:
Code:
Calculating dependencies... done!
[ebuild   R    ] x11-libs/libdrm-2.4.40  USE="-libkms -static-libs" VIDEO_CARDS="radeon* (-exynos) -intel -nouveau (-omap) -vmware" 0 kB
[ebuild   R    ] x11-drivers/xf86-input-evdev-2.7.3  0 kB
[ebuild   R    ] x11-drivers/xf86-input-keyboard-1.6.2  0 kB
[ebuild   R    ] x11-drivers/xf86-input-mouse-1.8.1  0 kB
[ebuild   R    ] x11-drivers/xf86-input-synaptics-1.6.2-r1  0 kB
[ebuild   R    ] x11-drivers/xf86-video-ati-7.0.0  USE="udev (-glamor)" 0 kB
[ebuild   R    ] x11-drivers/ati-drivers-12.11_beta11:1  USE="disable-watermark modules (multilib) qt4 -debug -static-libs" 0 kB

Total: 7 packages (7 reinstalls), Size of downloads: 0 kB

The following USE changes are necessary to proceed:
#required by x11-drivers/xf86-video-ati-7.0.0, required by x11-drivers/xf86-video-ati (argument)
>=x11-libs/libdrm-2.4.40 video_cards_radeon

Use --autounmask-write to write changes to config files (honoring CONFIG_PROTECT).

libdrm claims for VIDEO_CARDS=radeon, but I've VIDEO_CARDS="fglrx" in my /etc/portage/make.conf

[ ]'s
_________________
Emerging en gentoo
Back to top
View user's profile Send private message
BillWho
Veteran
Veteran


Joined: 03 Mar 2012
Posts: 1600
Location: US

PostPosted: Thu Feb 07, 2013 5:59 am    Post subject: Reply with quote

rudregues,

You got the error in the chroot because $(uname -r) is going to return sabayon's kernel version so you have to be careful with that.

Compiling the driver should update modules.dep etc., I don't understand why it didn't :?

As for the kb and mouse all you should need in make.conf is INPUT_DEVICES="evdev synaptics"

UPDATE: After changing that do emerge -av1 $(qlist -IC x11-drivers)
_________________
Good luck :wink:

Since installing gentoo, my life has become one long emerge :)
Back to top
View user's profile Send private message
rudregues
Apprentice
Apprentice


Joined: 29 Jan 2013
Posts: 231
Location: Brazil

PostPosted: Thu Feb 07, 2013 6:29 am    Post subject: Reply with quote

BillWho wrote:
rudregues,

You got the error in the chroot because $(uname -r) is going to return sabayon's kernel version so you have to be careful with that.

Compiling the driver should update modules.dep etc., I don't understand why it didn't :?

As for the kb and mouse all you should need in make.conf is INPUT_DEVICES="evdev synaptics"
Ok Bill, INPUT_DEVICES value fixed.


BillWho wrote:
UPDATE: After changing that do emerge -av1 $(qlist -IC x11-drivers)
I can't. If I type that command, I got this error:
Code:
The following USE changes are necessary to proceed:
#required by x11-drivers/xf86-video-ati-7.0.0, required by x11-drivers/xf86-video-ati (argument)
>=x11-libs/libdrm-2.4.40 video_cards_radeon

Use --autounmask-write to write changes to config files (honoring CONFIG_PROTECT).
and portage stops. And if I remove libdrm?
_________________
Emerging en gentoo
Back to top
View user's profile Send private message
rudregues
Apprentice
Apprentice


Joined: 29 Jan 2013
Posts: 231
Location: Brazil

PostPosted: Thu Feb 07, 2013 8:02 am    Post subject: Reply with quote

rudregues wrote:

[ebuild R ] x11-libs/libdrm-2.4.40 USE="-libkms -static-libs" VIDEO_CARDS="radeon* (-exynos) -intel -nouveau (-omap) -vmware" 0 kB
[ebuild R ] x11-drivers/xf86-input-evdev-2.7.3 0 kB
[ebuild R ] x11-drivers/xf86-input-keyboard-1.6.2 0 kB
[ebuild R ] x11-drivers/xf86-input-mouse-1.8.1 0 kB
[ebuild R ] x11-drivers/xf86-input-synaptics-1.6.2-r1 0 kB
[ebuild R ] x11-drivers/xf86-video-ati-7.0.0 USE="udev (-glamor)" 0 kB -->>radeon driver here
[ebuild R ] x11-drivers/ati-drivers-12.11_beta11:1 USE="disable-watermark modules (multilib) qt4 -debug -static-libs" 0 kB

I unmerged the "camufled" radeon driver. Then execute emerge -av1 $(qlist -IC x11-drivers) before compile my world without any problems.

I've discovered why the modules doesn't prob to the kernel in my chrooted environment. It's because emerge searches for /.../sabayon/.../depmod.map

But even after this, touchpad and keyboard doesn't work.

[ ]'s
_________________
Emerging en gentoo
Back to top
View user's profile Send private message
BillWho
Veteran
Veteran


Joined: 03 Mar 2012
Posts: 1600
Location: US

PostPosted: Thu Feb 07, 2013 11:49 pm    Post subject: Reply with quote

rudregues,

Is Event interface in config set :?:
Device Drivers --->
Input device support --->
<*> Event interface
_________________
Good luck :wink:

Since installing gentoo, my life has become one long emerge :)
Back to top
View user's profile Send private message
rudregues
Apprentice
Apprentice


Joined: 29 Jan 2013
Posts: 231
Location: Brazil

PostPosted: Fri Feb 08, 2013 12:02 am    Post subject: Reply with quote

Yes Bill, Event interface is built-in

Unique thing I changed from default in Input device support is joystick support, becausa I don't use.
_________________
Emerging en gentoo
Back to top
View user's profile Send private message
BillWho
Veteran
Veteran


Joined: 03 Mar 2012
Posts: 1600
Location: US

PostPosted: Fri Feb 08, 2013 1:10 am    Post subject: Reply with quote

rudregues,

Not a 100% sure about this, but try setting CONFIG_MOUSE_PS2=m or CONFIG_MOUSE_PS2=y
_________________
Good luck :wink:

Since installing gentoo, my life has become one long emerge :)
Back to top
View user's profile Send private message
rudregues
Apprentice
Apprentice


Joined: 29 Jan 2013
Posts: 231
Location: Brazil

PostPosted: Fri Feb 08, 2013 2:46 am    Post subject: Reply with quote

Bill, tried but had nothing. Have tried synaptics_usb module too, but nothing too.

I inserted my usb mouse in my notebook, but neither touchpad and mouse works.

I don't know if it helps, but I have a 100% working sabayon with this lsmod http://pastebin.com/1qyJwmHE
_________________
Emerging en gentoo
Back to top
View user's profile Send private message
BillWho
Veteran
Veteran


Joined: 03 Mar 2012
Posts: 1600
Location: US

PostPosted: Fri Feb 08, 2013 3:28 am    Post subject: Reply with quote

rudregues,

emerge x11-apps/xinput and check if the touchpad and/or kb is listed

Code:
laptop linux # xinput
⎡ Virtual core pointer                       id=2   [master pointer  (3)]
⎜   ↳ Virtual core XTEST pointer                 id=4   [slave  pointer  (2)]
⎜   ↳ Logitech Unifying Device. Wireless PID:1020   id=10   [slave  pointer  (2)]
⎜   ↳ Logitech Unifying Device. Wireless PID:4004   id=11   [slave  pointer  (2)]
⎜   ↳ DualPoint Stick                            id=13   [slave  pointer  (2)]
⎜   ↳ AlpsPS/2 ALPS DualPoint TouchPad           id=14   [slave  pointer  (2)]
⎣ Virtual core keyboard                      id=3   [master keyboard (2)]
    ↳ Virtual core XTEST keyboard                id=5   [slave  keyboard (3)]
    ↳ Power Button                               id=6   [slave  keyboard (3)]
    ↳ Video Bus                                  id=7   [slave  keyboard (3)]
    ↳ Power Button                               id=8   [slave  keyboard (3)]
    ↳ Sleep Button                               id=9   [slave  keyboard (3)]
    ↳ AT Translated Set 2 keyboard               id=12   [slave  keyboard (3)]
    ↳ Dell WMI hotkeys                           id=15   [slave  keyboard (3)]

For the serial mouse check CONFIG_MOUSE_SERIAL

I didn't see anything in the list except for ideapad_laptop which is set with CONFIG_IDEAPAD_LAPTOP, but I don't think it has anything to do with the touchpad :?

What does cat /sys/class/dmi/id/sys_vendor && cat /sys/class/dmi/id/product_name return :?:
_________________
Good luck :wink:

Since installing gentoo, my life has become one long emerge :)
Back to top
View user's profile Send private message
rudregues
Apprentice
Apprentice


Joined: 29 Jan 2013
Posts: 231
Location: Brazil

PostPosted: Fri Feb 08, 2013 4:02 am    Post subject: Reply with quote

Code:
laptop linux # xinput
Unable to connect to X server


BillWho wrote:
What does cat /sys/class/dmi/id/sys_vendor && cat /sys/class/dmi/id/product_name return :?:
LENOVO
20080


My notebook does not have a serial port, so CONFIG_MOUSE_SERIAL does not work. The ideapad_laptop, if I correctly remember, is something related with a problem to some Lenovo's keyboard, like some keys functioning like another ones.
_________________
Emerging en gentoo
Back to top
View user's profile Send private message
BillWho
Veteran
Veteran


Joined: 03 Mar 2012
Posts: 1600
Location: US

PostPosted: Fri Feb 08, 2013 4:17 am    Post subject: Reply with quote

Well, here's the problem: Unable to connect to X server 8O

X is not starting - how are you starting it :?: If you're using startx, what's the content of .xinitrc :?:
_________________
Good luck :wink:

Since installing gentoo, my life has become one long emerge :)
Back to top
View user's profile Send private message
rudregues
Apprentice
Apprentice


Joined: 29 Jan 2013
Posts: 231
Location: Brazil

PostPosted: Fri Feb 08, 2013 4:24 am    Post subject: Reply with quote

BillWho wrote:
Well, here's the problem: Unable to connect to X server 8O

X is not starting - how are you starting it :?: If you're using startx, what's the content of .xinitrc :?:

X starts when I startx in text-mode. But with no keyboard end mouse, so I've executed xinput in text-mode.

My ~.xinitrc:
Quote:
exec startfluxbox

_________________
Emerging en gentoo
Back to top
View user's profile Send private message
BillWho
Veteran
Veteran


Joined: 03 Mar 2012
Posts: 1600
Location: US

PostPosted: Fri Feb 08, 2013 4:54 am    Post subject: Reply with quote

:oops: right, no kb or mouse :oops:

Code:
wgetpaste /proc/bus/input/devices

_________________
Good luck :wink:

Since installing gentoo, my life has become one long emerge :)
Back to top
View user's profile Send private message
rudregues
Apprentice
Apprentice


Joined: 29 Jan 2013
Posts: 231
Location: Brazil

PostPosted: Fri Feb 08, 2013 5:14 am    Post subject: Reply with quote

Wow, never seen wgetpaste! That's a nice program.
http://bpaste.net/show/75873/
_________________
Emerging en gentoo
Back to top
View user's profile Send private message
USTruck
Guru
Guru


Joined: 21 Aug 2005
Posts: 423
Location: La Louviere (Belgique)

PostPosted: Fri Feb 08, 2013 5:38 am    Post subject: Reply with quote

Hello,

Just to be sure : start /etc/init.d/gpm

Have you a mouse ?
Yes -> X configuration/init problem
No -> find out why

About keyb and mouse under x
The Xorg require udev to detect and init video card, keyboard, mouse etc .....
Have you some error with them ... search on dmesg all message about initilation of keyboard, mouse etc .... all ok or not ?

After that about video card, what card have you ? (lspci -k) , -k to display module used by peripheral
Back to top
View user's profile Send private message
BillWho
Veteran
Veteran


Joined: 03 Mar 2012
Posts: 1600
Location: US

PostPosted: Fri Feb 08, 2013 5:47 am    Post subject: Reply with quote

rudregues,

I don't see anything alluding to a touchpad :?

Looking through the module list again and checking some of the names against makefiles isn't helping much.

Did you try comparing sabayon's .config to the gentoo .config :?:
_________________
Good luck :wink:

Since installing gentoo, my life has become one long emerge :)
Back to top
View user's profile Send private message
rudregues
Apprentice
Apprentice


Joined: 29 Jan 2013
Posts: 231
Location: Brazil

PostPosted: Fri Feb 08, 2013 5:52 am    Post subject: Reply with quote

USTruck wrote:
Hello,

Just to be sure : start /etc/init.d/gpm

Have you a mouse ?
Yes -> X configuration/init problem
No -> find out why

About keyb and mouse under x
The Xorg require udev to detect and init video card, keyboard, mouse etc .....
Have you some error with them ... search on dmesg all message about initilation of keyboard, mouse etc .... all ok or not ?

After that about video card, what card have you ? (lspci -k) , -k to display module used by peripheral

Hi USTruck, gpm works and I can use my usb mouse and touchpad in text-mode. The video card problem was solved in one of the posts above by entering text-mode and typing depmod -a
I'll give a look in dmesg and try to find keyboard and mouse issues.

UPDATE: dmesg here http://bpaste.net/show/75888
_________________
Emerging en gentoo
Back to top
View user's profile Send private message
rudregues
Apprentice
Apprentice


Joined: 29 Jan 2013
Posts: 231
Location: Brazil

PostPosted: Fri Feb 08, 2013 6:19 am    Post subject: Reply with quote

BillWho wrote:
rudregues,

I don't see anything alluding to a touchpad :?

Looking through the module list again and checking some of the names against makefiles isn't helping much.

Did you try comparing sabayon's .config to the gentoo .config :?:

Bill, sorry the mistake, I run wgetpaste /proc/bus/input/devices before load psmouse module. S I run again after modprobe the module and touchpad appeared http://bpaste.net/show/75889/
I will install linux-sources in Sabayon and compare the files in input sections.
_________________
Emerging en gentoo
Back to top
View user's profile Send private message
rudregues
Apprentice
Apprentice


Joined: 29 Jan 2013
Posts: 231
Location: Brazil

PostPosted: Fri Feb 08, 2013 6:49 am    Post subject: Reply with quote

gentoo input section in kernel config http://pastebin.com/pGjsVc0n
sabayon input section in kernel config http://pastebin.com/cQezwvfz

I don't know, but I think CONFIG_INPUT_MOUSEDEV_PSAUX selected in Sabayon and not selected in Gentoo can be a issue. See about this config here http://kernel.xc.net/html/linux-2.6.19/m68knommu/INPUT_MOUSEDEV_PSAUX
_________________
Emerging en gentoo
Back to top
View user's profile Send private message
VoidMage
Watchman
Watchman


Joined: 14 Oct 2006
Posts: 6196

PostPosted: Fri Feb 08, 2013 10:53 am    Post subject: Reply with quote

No, CONFIG_INPUT_MOUSEDEV_PSAUX has been (nearly) use for several years.

The issue is most likely (given your previous posts) that you copy random files between gentoo and sabayon, that aren't quite as equivalent as you think.
Back to top
View user's profile Send private message
USTruck
Guru
Guru


Joined: 21 Aug 2005
Posts: 423
Location: La Louviere (Belgique)

PostPosted: Fri Feb 08, 2013 12:43 pm    Post subject: Reply with quote

Hello

About make.conf : what ati card have you ? normaly you don't needs fglrx , use radeon
http://wiki.gentoo.org/wiki/Radeon

Quote:

[ 1.657484] EXT3-fs (sda6): error: couldn't mount because of unsupported optional features (240)


Add : rootfstype=ext4 on your kernel command line

Quote:

[ 1.231714] i8042: PNP: PS/2 Controller [PNP0303:KBC0,PNP0f13:MSS0] at 0x60,0x64 irq 1,12
[ 1.263963] mousedev: PS/2 mouse device common for all mice

[ 1.298354] input: AT Translated Set 2 keyboard as /devices/platform/i8042/serio0/input/input4

[ 2.274477] usb 3-4: Product: USB Mouse
[ 2.283216] input: USB Mouse as /devices/pci0000:00/0000:00:12.0/usb3/3-4/3-4:1.0/input/input5
[ 2.284412] hid-generic 0003:04F3:0216.0001: input,hidraw0: USB HID v1.11 Mouse [USB Mouse] on usb-0000:00:12.0-4/input0

[ 32.230292] usbcore: registered new interface driver synaptics_usb
[ 40.446950] psmouse serio1: synaptics: Touchpad model: 1, fw: 7.2, id: 0x1c0b1, caps: 0xd04733/0xa40000/0xa0000, board id: 3655, fw id: 570026
[ 40.574112] input: SynPS/2 Synaptics TouchPad as /devices/platform/i8042/serio1/input/input7


[/quote]


Your keyboard : input/input4
Your USB mouse : input/input5
Your synaptics : input/input7

By : ls -l /dev/input/by-id
You verify that all detected correctly and point to /dev/input/inputx (x = input number provider by dmesg -> keyboard /dev/input/input4)


Verify that no X run (/etc/init.d/xdm stop) and ps -A | grep X
launch : X -configure

It's generate an xorg.conf file under root , verify what are detected (section input, keyboard, mouse ....)

If necessary create /etc/X11/xorg.conf.d
Under this folder create a file (30-keyboard.conf, 30-mouse.conf, 30-synaptics.conf)

like :
Quote:
cat /etc/X11/xorg.conf.d/30-keyboard.conf
Section "InputClass"
Identifier "keyboard-all"
Driver "evdev"
MatchDevicePath "/dev/input/inputX"
Option "XkbLayout" "YOUR LAYOUT"
Option "XkbOptions" "compose:rwin,terminate:ctrl_alt_bksp" (if you need it)
MatchIsKeyboard "on"
EndSection


/dev/input/inputX ; X = look at where to point /dev/input/by-id
Your Layout : no required if you have US keyboard

About mouse and synaptics, replace MatchIsKeyboard by MatchIsPointer AND identifier by "mouse-all", "touchpad-all"

'man evdev' to know what you put on each file to set some options...

If you prefer and to be sure that do not change usb port (especialy usb mouse) you have a possibilities to change MatchDevicePath by MatchUSBID "matchusb"

lsusb can help you
Back to top
View user's profile Send private message
rudregues
Apprentice
Apprentice


Joined: 29 Jan 2013
Posts: 231
Location: Brazil

PostPosted: Fri Feb 08, 2013 4:05 pm    Post subject: Reply with quote

VoidMage wrote:
No, CONFIG_INPUT_MOUSEDEV_PSAUX has been (nearly) use for several years.

The issue is most likely (given your previous posts) that you copy random files between gentoo and sabayon, that aren't quite as equivalent as you think.
Void, I stopped to use Sabayon and chroot Gentoo. Now I reboot, enter Gentoo text-mode, run commands passed here and save the output.


USTruck, I really tried to use radeon, but had many problems. So I tried to instal fglrx and it installed with no problems. You can see it here https://forums.gentoo.org/viewtopic-t-950178-highlight-.html

I'll pass rootfstype=ext4 to kernel line in grub. Thanks.


USTruck wrote:
By : ls -l /dev/input/by-id
You verify that all detected correctly and point to /dev/input/inputx (x = input number provider by dmesg -> keyboard /dev/input/input4)
No, it's not. When I run this command I have
Code:
ls: cannot access /dev/input/by-id: No such file or directory

I must link with this command or similar?
Code:
link -s  /devices/platform/i8042/serio1/input/input7 /dev/input/input7



Since ls -l /dev/input/by-id does not list any device, X -configure wouldn't work. The output confirms this:
Code:

X.Org X Server 1.13.1
Release Date: 2012-12-13
X Protocol Version 11, Revision 0
Build Operating System: Linux 3.4.0-sabayon x86_64 Gentoo
Current Operating System: Linux localhost 3.6.11-gentoo #2 SMP Fri Feb 8 00:22:31 FNT 2013 x86_64
Kernel command line: BOOT_IMAGE=/boot/vmlinuz-3.6.11-gentoo root=/dev/sda6
Build Date: 03 February 2013  09:18:42PM
 
Current version of pixman: 0.28.0
   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: Fri Feb  8 13:27:38 2013
List of video drivers:
   fglrx
[b]No devices to configure.  Configuration failed[/b].
Server terminated with error (2). Closing log file.

_________________
Emerging en gentoo
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
Goto page 1, 2  Next
Page 1 of 2

 
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