You are not logged in.

#1 2009-07-10 21:49:25

Uriziel
Member
Registered: 2009-07-10
Posts: 8

Mouse and keyboard don't work in X

There is same topic in this forum but still I don't know how to solve my problem.
I've got gdm in daemons and after few sec my X are on and I can't do ANYTHING but reboot.
Before X starts i can change tty or log in, but gdm will start anyway.
Its my first instalation of Arch, previously i was using Ubuntu. After installation everything was working fine, I installed some stuff, mouse and keyboard was working fine, but it cracked after reboot .

Last edited by Uriziel (2009-07-10 21:55:33)

Offline

#2 2009-07-10 21:52:16

Ghost1227
Forum Fellow
From: Omaha, NE, USA
Registered: 2008-04-21
Posts: 1,422
Website

Re: Mouse and keyboard don't work in X

This is ALL OVER the forums. Make sure that you have hal started.... and next time read the wiki/search the forums.


.:[My Blog] || [My GitHub]:.

Offline

#3 2009-07-10 21:54:13

Uriziel
Member
Registered: 2009-07-10
Posts: 8

Re: Mouse and keyboard don't work in X

kk, but I can't check if its started or start it after my X starts, and I don't know how to prevent it
btw. afair i added hal to daemons

Offline

#4 2009-07-10 21:56:06

Ghost1227
Forum Fellow
From: Omaha, NE, USA
Registered: 2008-04-21
Posts: 1,422
Website

Re: Mouse and keyboard don't work in X

make sure that it's added to daemons... you could also try manually starting it from console before you start X


.:[My Blog] || [My GitHub]:.

Offline

#5 2009-07-10 21:57:20

Uriziel
Member
Registered: 2009-07-10
Posts: 8

Re: Mouse and keyboard don't work in X

As I wrote before my X starts automatically because of gdm in daemons, that's why I don't know what to do

Offline

#6 2009-07-10 21:58:47

djszapi
Member
From: Cambridge, United Kingdom
Registered: 2009-06-14
Posts: 1,439
Website

Re: Mouse and keyboard don't work in X

Just for knowing how treasure archwiki:

http://wiki.archlinux.org/index.php/Xorg

This line: "Add hal to DAEMONS array of /etc/rc.conf"

Offline

#7 2009-07-10 22:02:24

Uriziel
Member
Registered: 2009-07-10
Posts: 8

Re: Mouse and keyboard don't work in X

That still doesn't solve my problem because I can't prevent auto startx

Last edited by Uriziel (2009-07-10 22:03:13)

Offline

#8 2009-07-10 22:03:12

Ghost1227
Forum Fellow
From: Omaha, NE, USA
Registered: 2008-04-21
Posts: 1,422
Website

Re: Mouse and keyboard don't work in X

can't prevent startx? what do you mean prevent startx?


.:[My Blog] || [My GitHub]:.

Offline

#9 2009-07-10 22:03:59

Uriziel
Member
Registered: 2009-07-10
Posts: 8

Re: Mouse and keyboard don't work in X

As I wrote before X starts automatically after boot

Offline

#10 2009-07-10 22:05:42

Ghost1227
Forum Fellow
From: Omaha, NE, USA
Registered: 2008-04-21
Posts: 1,422
Website

Re: Mouse and keyboard don't work in X

ok... did you setup inittab to boot to runlevel 5?


.:[My Blog] || [My GitHub]:.

Offline

#11 2009-07-10 22:09:17

Uriziel
Member
Registered: 2009-07-10
Posts: 8

Re: Mouse and keyboard don't work in X

No, how can I do that?
I'm Ubuntu user : <, everything there was done in some simple, lame way so I didn't learn anything about 'true' Linux there

Offline

#12 2009-07-10 22:16:19

Ghost1227
Forum Fellow
From: Omaha, NE, USA
Registered: 2008-04-21
Posts: 1,422
Website

Re: Mouse and keyboard don't work in X

wow... did you follow the Beginners Guide?


.:[My Blog] || [My GitHub]:.

Offline

#13 2009-07-10 22:23:25

Uriziel
Member
Registered: 2009-07-10
Posts: 8

Re: Mouse and keyboard don't work in X

Well, yeah, afair I did everything what's in there.
But there isn't anything about inittab besides kde section

Offline

#14 2009-07-10 22:30:56

whordijk
Member
From: the Netherlands
Registered: 2008-12-12
Posts: 147
Website

Re: Mouse and keyboard don't work in X

So... You installed X, didn't test it assuming everything was all right, and went on installing a DE and a DM..? I remember the Beginner's Guide explicitally mentioning testing X before moving on tongue You can remove gdm/kdm/xdm from your daemons so X won't be started in your boot sequence, then you can test HAL and your X server.

Offline

#15 2009-07-10 22:33:41

Uriziel
Member
Registered: 2009-07-10
Posts: 8

Re: Mouse and keyboard don't work in X

Well, everything was working fine, I was running gnome, installed some stuff, it cracked after reboot.
How can I remove gdm from daemons when X starts and I can't do anything but reboot? I'm still waiting for this solution

Offline

#16 2009-07-10 22:41:24

whordijk
Member
From: the Netherlands
Registered: 2008-12-12
Posts: 147
Website

Re: Mouse and keyboard don't work in X

Ah, I'm sorry: I shouldn't be so quick in my judgement smile I think you should be able to modify your boot sequence in GRUB. I think you can enter a custom line in order not to boot into X, although I'm not entirely sure how this can be done... I hope someone more experienced than me can help you!

Last edited by whordijk (2009-07-10 22:46:48)

Offline

#17 2009-07-10 23:21:01

Ghost1227
Forum Fellow
From: Omaha, NE, USA
Registered: 2008-04-21
Posts: 1,422
Website

Re: Mouse and keyboard don't work in X

just add 3 to the end of the boot line


.:[My Blog] || [My GitHub]:.

Offline

#18 2009-07-10 23:43:27

theapodan
Member
From: Virginia, USA
Registered: 2008-10-21
Posts: 116

Re: Mouse and keyboard don't work in X

Read his posts.  He has gdm being launched from his daemons array (which is a bad idea, if you want to launch X at startup look at /etc/inittab)

Appending 3 to the kernel line won't help.

Uri, what you should do is boot with the arch install cd, mount whatever partition has your /etc directory on it, and edit the file /etc/rc.conf  At the end of this file will be this section

# -----------------------------------------------------------------------
# DAEMONS
# -----------------------------------------------------------------------
#
# Daemons to start at boot-up (in this order)
#   - prefix a daemon with a ! to disable it
#   - prefix a daemon with a @ to start it up in the background
#

Your daemons line might look like this:
DAEMONS=(syslog-ng dbus network netfs gpm crond avahi-daemon gdm)

In the list of daemons, remove gdm, and add hal.

Then unmount everything and reboot, arch should boot to a console login, where you can then use startx to see if it works properly with hal.


If that works, and you want to boot to an X login (like gdm),
uncomment (delete the #) this line in /etc/inittab
#x:5:respawn:/usr/sbin/gdm -nodaemon

and change
id:3:initdefault:
to
id:5:initdefault:

Then if you ever have a problem again with X not starting, you can add 3 to the kernel boot line (with GRUB or LILO), which will start Arch in runlevel 3, which is console login.

Last edited by theapodan (2009-07-10 23:45:50)

Offline

#19 2009-07-11 03:27:13

Mr Pink57
Member
From: a van down by the river
Registered: 2009-05-30
Posts: 91

Re: Mouse and keyboard don't work in X

People forget to install the mouse and keyboard.

pacman -S xf86-input-keyboard
pacman -S xf86-input-mouse

To add on to the above, further down in the inittab there is a few login manager options, just make sure to comment out xdm with a"#" then uncomment GDM.

pink

Last edited by Mr Pink57 (2009-07-11 03:31:29)


Even a broken clock is right twice a day.

Diplomacy without force is like music without instruments.

Offline

#20 2009-07-11 06:57:04

majiq
Member
Registered: 2009-03-06
Posts: 259

Re: Mouse and keyboard don't work in X

Uh, the simple solution to editing the files before going into the X is to add "-- single" or maybe just "single" to the end of the kernel line in GRUB. (If you don't know, you have to press e on the selection, I think, and then e again on the specific line you're editing; just pay attention to the directions/options at the bottom of the screen). This should take you down to single user mode - a mode for editing important config files, etc. before launching into the general use setup. You'll be prompted for your root password. Edit the /etc/rc.conf there,

I'd agree with Mr Pink57, a lot of people (myself included - what hell) forget to install xf86-input-keyboard and xf86-input-mouse. I think this is included in the evdev package, though, so you could just add xf86-input-evdev (I think that's what it's called. Look around a bit.)

Also, welcome to Arch. :-)

Offline

#21 2009-07-11 06:59:21

majiq
Member
Registered: 2009-03-06
Posts: 259

Re: Mouse and keyboard don't work in X

@theapodan What's the benefit of using inittab versus the daemons array other than being able to append 3 to the end of the kernel line? Anything?

Offline

#22 2009-07-11 19:26:33

theapodan
Member
From: Virginia, USA
Registered: 2008-10-21
Posts: 116

Re: Mouse and keyboard don't work in X

By using inittab, and appending 3 to the bootline, you can boot into console login if X breaks.  If you use the daemons array, you wouldn't be able to boot into multiuser (console) login without some hassle.

I can't think of any downsides to using inittab.

Offline

#23 2009-07-11 20:55:10

jacko
Member
Registered: 2007-11-23
Posts: 840

Re: Mouse and keyboard don't work in X

you need to be in single user mode, last I knew all you had to do was add a '1' to the grub line. AFAIK booting to 3 (or was that 5) will run rc.d and launch gdm.

Anyway, using single user mode to add a ! in front of gdm in /etc/rc.conf and rebooting won't hurt anything.

I think this is also why the prefered way to start a login manager is through inittab 5 not as a daemon, even though it's easier

Last edited by jacko (2009-07-11 20:57:38)

Offline

#24 2009-07-12 09:52:02

Squall90
Member
From: Germany
Registered: 2008-10-19
Posts: 26

Re: Mouse and keyboard don't work in X

If there's no other way, use the installation cd. When you're logged, mount your disk and rewrite your files. It might be the easiest way.

Offline

Board footer

Powered by FluxBB