LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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 10-18-2011, 06:22 AM   #1
prushik
Member
 
Registered: Mar 2009
Location: South Korea
Distribution: Lubuntu, BetterLinux
Posts: 364

Rep: Reputation: 28
Mouse is not working in X server (kdrive xfbdev)


Hey everybody
I have been working on getting my very own Linux distro up and running. I have a few questions, but I will separate them into separate post since they have nothing really to do with each other.
Right now I have a bootable linux system, it will boot on real hardware, but for development purposes I am using qemu. Once the system boots, it opens a getty on /dev/tty0. That works great, but I want graphics. So I have installed an Xserver, but I wanted to keep it small so I went with Kdrive Xfbdev, which needs a framebuffer device at /dev/fb0. I have it working with Linux 2.6.34, on boot I had to add "vga=792" to the kernel command line along with enabling vesafb in the kernel .config. That worked and I could get X running.
However, just because its running doesn't mean all is well. The mouse refuses to work. Now, the reason that this won't work has me stumped. I know that I have compiled the proper drivers for the mouse into my kernel, and I can see that they are working by issuing the command "sudo cat /dev/input/mouse0". I read somewhere that kdrive looks for a mouse at /dev/mouse, so I created a symlink at /dev/mouse pointing to /dev/input/mouse0, but still the mouse will not work in X.
Any ideas?
 
Old 10-18-2011, 07:51 AM   #2
prushik
Member
 
Registered: Mar 2009
Location: South Korea
Distribution: Lubuntu, BetterLinux
Posts: 364

Original Poster
Rep: Reputation: 28
Quote:
Originally Posted by prushik View Post
Hey everybody
I have been working on getting my very own Linux distro up and running. I have a few questions, but I will separate them into separate post since they have nothing really to do with each other.
Right now I have a bootable linux system, it will boot on real hardware, but for development purposes I am using qemu. Once the system boots, it opens a getty on /dev/tty0. That works great, but I want graphics. So I have installed an Xserver, but I wanted to keep it small so I went with Kdrive Xfbdev, which needs a framebuffer device at /dev/fb0. I have it working with Linux 2.6.34, on boot I had to add "vga=792" to the kernel command line along with enabling vesafb in the kernel .config. That worked and I could get X running.
However, just because its running doesn't mean all is well. The mouse refuses to work. Now, the reason that this won't work has me stumped. I know that I have compiled the proper drivers for the mouse into my kernel, and I can see that they are working by issuing the command "sudo cat /dev/input/mouse0". I read somewhere that kdrive looks for a mouse at /dev/mouse, so I created a symlink at /dev/mouse pointing to /dev/input/mouse0, but still the mouse will not work in X.
Any ideas?
I managed to solve this problem on my own. I needed to explicitly tell it where my mouse was: Xfbdev -mouse mouse,/dev/mice,5
However, now my keyboard won't work. I tried adding -keybd keyboard, like I saw on one website, and that seems to have made the Xserver detect the keypresses, but it can't seem to process them correctly. I don't know what to do.
 
Old 10-18-2011, 08:04 AM   #3
prushik
Member
 
Registered: Mar 2009
Location: South Korea
Distribution: Lubuntu, BetterLinux
Posts: 364

Original Poster
Rep: Reputation: 28
Quote:
Originally Posted by prushik View Post
I managed to solve this problem on my own. I needed to explicitly tell it where my mouse was: Xfbdev -mouse mouse,/dev/mice,5
However, now my keyboard won't work. I tried adding -keybd keyboard, like I saw on one website, and that seems to have made the Xserver detect the keypresses, but it can't seem to process them correctly. I don't know what to do.
Ok, nevermind. I got it working with a different keyboard driver. I'm happy now.
 
  


Reply

Tags
/dev/input/mouse0, /dev/mouse, kdrive, mouse, xfbdev


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
Difference between Xorg and Xfbdev? arunprasanna Linux - Newbie 1 07-08-2010 06:04 AM
Mouse and keyboard stop working when X server starts Parent5446 Ubuntu 2 12-03-2009 03:20 PM
How to remove X (mouse) cursor from Xfbdev? cagatay Linux - Software 1 05-07-2007 03:13 PM
Trying to write a kdrive/XFree86 mouse driver Orkie Programming 0 05-13-2006 05:37 AM
how to install and run Xfbdev? mukeshj Linux - Software 2 09-04-2005 11:17 AM


All times are GMT -5. The time now is 01:27 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration