LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-21-2004, 01:40 PM   #1
rmanocha
Member
 
Registered: Oct 2003
Location: Austin,TX
Distribution: Debian SID-->fully content-->Love APT,kernel 2.6.4
Posts: 327

Rep: Reputation: 30
kernel 2.6.4 and debian sid.X not working.PLZZZZ help.


hey guys,
I have been trying to get this to work for the last month or so but i have just not been able to get rid of this problem.I have tried various version of the 2.6 series and everytime i get the same error.
I have a normal serial port mouse attached onto my mobo.
presently i am running kernel 2.4.24 and the mouse section of XF86Config file is:
Code:
Identifier  "Mouse1"
    Driver      "mouse"
    #Option "Protocol"    "PS/2"
    Option "Device"      "/dev/psaux"
    Option "Name" "Autodetection"
    Option "Protocol" "IMPS/2"
    Option "ZAxisMapping" "4 5"
This works just fine.
however i got an error message saying that /dev/psaux does not exist when i use the same config file so i did some research and saw that people were using /dev/input/mice as their device so i put in that.
Code:
Identifier  "Mouse1"
    Driver      "mouse"
    #Option "Protocol"    "PS/2"
    Option "Device"      "/dev/input/mice"
    Option "Name" "Autodetection"
    Option "Protocol" "IMPS/2"
    Option "ZAxisMapping" "4 5"
however this did not work and i got the following error message:
Code:
(**) Option "Protocol" "IMPS/2"
(**) Mouse1: Protocol: "IMPS/2"
(**) Option "CorePointer"
(**) Mouse1: Core Pointer
(**) Option "Device" "/dev/input/mice"
(EE) xf86OpenSerial: Cannot open device /dev/input/mice
        No such device.
(EE) Mouse1: cannot open input device
(EE) PreInit failed for input device "Mouse1"
(II) UnloadModule: "mouse"
(II) Keyboard "Keyboard1" handled by legacy driver
(WW) No core pointer registered
(II) Server_Terminate keybinding not found
No core pointer

Fatal server error:
failed to initialize core devices
i also get another error with the new kernel:
Code:
Open APM failed (/dev/apm_bios) (No such device)
i have no idea what this second error means so if anyone does please do help me.
I have also checked to make sure the /dev/input/mice does exist and it has the following permissions:
Code:
crw-r--r--    1 root     root      13,  63 Mar 14  2002 mice
/dev/psaux also has the same permissions:
Code:
crw-r--r--    1 root     root      10,   1 Mar 21 13:23 psaux
Now i do not know what i am doing wrong or what is going wrong here.
I am using apt to download the kernel image so i dont think there could be much wrong with the config of the kernel.
could someone please help me with this.I really want to use 2.6.4 but just cant seem to get past this problem.
if it helps i have XFree 4.3.0-7 installed.
plzzzzz help me.
thanks
 
Old 03-21-2004, 02:38 PM   #2
AutOPSY
Member
 
Registered: Mar 2004
Location: US
Distribution: Redhat 9 - Linux 2.6.3
Posts: 836

Rep: Reputation: 31
as far as I know a serial mouse is not PS/2.

also make sure you have compiled support in your kernel for the right protocol for your mouse.

PS/2 mouse, is a small circular headed connection.
 
Old 03-22-2004, 06:24 AM   #3
fatcat
LQ Newbie
 
Registered: Jan 2004
Posts: 10

Rep: Reputation: 1
check that X is setuid root

Have you checked that your XFree86 has privileges to read that device:
-rws--x--x 1 root root 1960262 Feb 27 2003 /usr/X11R6/bin/XFree86

the s is the important one.

(I had better luck with /dev/psaux compared to the /dev/input/mice device)
 
Old 03-22-2004, 12:07 PM   #4
rmanocha
Member
 
Registered: Oct 2003
Location: Austin,TX
Distribution: Debian SID-->fully content-->Love APT,kernel 2.6.4
Posts: 327

Original Poster
Rep: Reputation: 30
Re: check that X is setuid root

Quote:
Originally posted by fatcat
Have you checked that your XFree86 has privileges to read that device:
-rws--x--x 1 root root 1960262 Feb 27 2003 /usr/X11R6/bin/XFree86

the s is the important one.

(I had better luck with /dev/psaux compared to the /dev/input/mice device)
Code:
-rwxr-xr-x    1 root     root      1742316 Mar 17 23:42 /usr/X11R6/bin/XFree86
those are the permissions i have.
do i need to change anything?
thanks for the reply.
 
Old 03-25-2004, 02:47 AM   #5
fatcat
LQ Newbie
 
Registered: Jan 2004
Posts: 10

Rep: Reputation: 1
Yes, those protections do not give permission to access the device. You need to do the following logged in as root:
chmod u+s /usr/X11R6/bin/XFree86
Then you should have the setuid (s) instead of x in the file protections.
 
Old 03-25-2004, 10:42 PM   #6
rmanocha
Member
 
Registered: Oct 2003
Location: Austin,TX
Distribution: Debian SID-->fully content-->Love APT,kernel 2.6.4
Posts: 327

Original Poster
Rep: Reputation: 30
well i figured out that permissions was not what affected all this.
i had to load two extra modules...mousedev and psmouse.
once i had loaded the two of those...everything else worked like a charm.No problems at all.
thanks for all the help.
 
Old 04-19-2004, 04:14 PM   #7
d3c3it
LQ Newbie
 
Registered: Apr 2004
Distribution: debian, gentoo
Posts: 4

Rep: Reputation: 0
posted in wrong thread, sorry

Last edited by d3c3it; 04-20-2004 at 01:14 AM.
 
Old 04-19-2004, 05:22 PM   #8
rmanocha
Member
 
Registered: Oct 2003
Location: Austin,TX
Distribution: Debian SID-->fully content-->Love APT,kernel 2.6.4
Posts: 327

Original Poster
Rep: Reputation: 30
is udev a module?
 
Old 04-20-2004, 01:15 AM   #9
d3c3it
LQ Newbie
 
Registered: Apr 2004
Distribution: debian, gentoo
Posts: 4

Rep: Reputation: 0
sorry i posted in the wrong thread
 
Old 04-27-2004, 03:20 PM   #10
pe2338
Member
 
Registered: Dec 2002
Location: Bucharest,RO
Distribution: debian etch, sarge and sid
Posts: 407

Rep: Reputation: 30
Quote:
Originally posted by fatcat
Yes, those protections do not give permission to access the device. You need to do the following logged in as root:
chmod u+s /usr/X11R6/bin/XFree86
Then you should have the setuid (s) instead of x in the file protections.
are you sure?
Code:
-rwxr-xr-x    1 root     root      1742316 Mar 18 07:42 /usr/X11R6/bin/XFree86
e
this is debian, so I guess they know what they're doing...
Why would XFree86 need set uid?

this would be a MAJOR security risk imo.
 
Old 04-27-2004, 03:36 PM   #11
LavaDevil94
LQ Guru
 
Registered: Jul 2003
Distribution: Gentoo 2004.2: Who needs exmmpkg when you have emerge?
Posts: 1,795

Rep: Reputation: 47
did you try replacing /dev/psaux with /dev/mouse?
 
Old 04-27-2004, 05:27 PM   #12
pe2338
Member
 
Registered: Dec 2002
Location: Bucharest,RO
Distribution: debian etch, sarge and sid
Posts: 407

Rep: Reputation: 30
Quote:
Originally posted by rmanocha
well i figured out that permissions was not what affected all this.
i had to load two extra modules...mousedev and psmouse.
once i had loaded the two of those...everything else worked like a charm.No problems at all.
thanks for all the help.
thanks man!!! This works for me too..

I thought about those modules, but not together....

now I will install lm-sensors...

oops, alsa not working... this can be done...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
will the ltmodem drivers work in debian sid (knoppix sid) maximalred Debian 5 05-29-2009 10:44 AM
ne.c NE2000/1000 modules kernel 2.6 with debian SID problem e88z4 Debian 9 08-22-2004 10:38 PM
Got Nvidia driver working! (SID kernel=2.6.6) boutrosboutros Debian 1 06-09-2004 02:31 PM
Debian Sid - ALSA and a stock 2.6.5 kernel UrbanSlayer Debian 8 04-18-2004 09:14 PM
Problems with Linux kernel 2.6.1 on Debian Sid nosebleed Linux - General 3 01-29-2004 10:20 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:40 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration