LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Mouse is not working in X server (kdrive xfbdev) (https://www.linuxquestions.org/questions/linux-software-2/mouse-is-not-working-in-x-server-kdrive-xfbdev-908750/)

prushik 10-18-2011 06:22 AM

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?

prushik 10-18-2011 07:51 AM

Quote:

Originally Posted by prushik (Post 4501359)
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.

prushik 10-18-2011 08:04 AM

Quote:

Originally Posted by prushik (Post 4501438)
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.


All times are GMT -5. The time now is 02:14 PM.