LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 10-17-2012, 06:01 PM   #1
mariostg
Member
 
Registered: Apr 2011
Location: Gatineau, Quebec
Distribution: OpenBSD
Posts: 80

Rep: Reputation: 5
startx lost keyboard and mouse


Ohhhhh yes I have completed X window install, all went well. So I do startx as stipulated in the book, I get the 3 windows, the clock. But the keyboard and mouse are dead. I unplugged them and tried other ports, no success. :-|

I think I know, can't check at the moment, but has to do with installing xf86 drivers for keyboard and mouse, I only did the nouveau driver... oups.

Last edited by mariostg; 10-17-2012 at 06:32 PM. Reason: more details
 
Old 10-17-2012, 06:59 PM   #2
stoat
Member
 
Registered: May 2007
Distribution: LFS
Posts: 628

Rep: Reputation: 185Reputation: 185
Try that Evdev input driver. No harm trying. Reversible, too.
 
Old 10-17-2012, 08:18 PM   #3
mariostg
Member
 
Registered: Apr 2011
Location: Gatineau, Quebec
Distribution: OpenBSD
Posts: 80

Original Poster
Rep: Reputation: 5
@stoat.
Yes indeed. That's why I edited my post. I woke up Then I saw evdev browsing the Xorg driver page. I have BLFS with Xorg fully operational. Next step is Fluxbox etc.
 
Old 10-17-2012, 10:03 PM   #4
stoat
Member
 
Registered: May 2007
Distribution: LFS
Posts: 628

Rep: Reputation: 185Reputation: 185
I like Fluxbox. It's very easy to install and doesn't require a bunch of other stuff. There are some neat customizations you can do for it, too.

To display your own image as the desktop background (it's not really a desktop, but it looks like one), you can install Which-2.20, libast-0.7 (not in BLFS), Eterm-0.9.6 and Eterm-bg-0.9.6 (not in BLFS). All of those are simple to install (I can tell you where they are and how to install them). Put the image file, say background.png, in $HOME/.fluxbox. Then edit $HOME/.fluxbox/overlay to add these lines...
Code:
background: aspect
background.pixmap: $HOME/.fluxbox/background.png
Viola! That image is the background. I like to use Gimp to crop and scale my background files. I have a scheme arranged for about a dozen images to be randomly rotated for each log in.

To establish automatic starting of X and Fluxbox
, edit $HOME/.xinitrc to add something like this...
Code:
exec dbus-launch startfluxbox &>>/dev/null
If you don't have D-Bus yet, omit that dbus-launch part of the command. The redirect is to keep junk off my tty console (it's visible at log out time). Then put this in $HOME/.bash_profile...
Code:
# Start X automatically after login...
if [ -z "$DISPLAY" ] && [ $(tty) == /dev/tty1 ]; then
  startx
fi
To adjust the panel clock properties, right-click on the panel clock. Then edit the clock properties to the following for hours, minutes, AM/PM, weekday, and date (see strftime for more possibilities)...
Code:
%l:%M %p %A %D
If your fonts look bad, try adding your own fonts to the system. I find adding my collection of Windows TTF fonts in $HOME/.fonts followed by fc-cache -fv makes my Fluxbox look kinda nice (other stuff pick those up, too.)

To get the Fluxbox menu to pop up via a key press, you can establish a keyboard shortcut for that. I use that useless Windows menu key (usually next to the right Ctrl key) for a shortcut to the Fluxbox menu. This is handy when the desktop is hidden by maximized windows, but I forgot how to set that up. And it is mysteriously missing from my notes. If I find that information, I will return and add the steps for that very useful Fluxbox modification.

...Okay, I still can't find my notes about this, but I can plainly see that I put the following lines in $HOME/.fluxbox/keys to use the Windows menu key for the Fluxbox menu ...
Code:
# get menus with the menu key
Menu :RootMenu
I vaguely remember some command that I used to identify the name of a key when it is pressed. Then the Fluxbox wiki has a page about the keyboard shortcuts. I'm sort of pissed that I have misplaced that stuff.

...I never found my notes, but as it turns out, everything one needs to know is in that Fluxbox wiki about shortcuts. The terminal command to identify a key's name for the purpose of making it a Fluxbox shortcut is xev. Example output for that useless Windows key after running xev...
Code:
KeyRelease event, serial 36, synthetic NO, window 0x600001,
    root 0x15c, subw 0x0, time 8969509, (-244,720), root:(517,743),
    state 0x0, keycode 135 (keysym 0xff67, Menu), same_screen YES,
    XLookupString gives 0 bytes: 
    XFilterEvent returns: False
Then, I used that "Menu" name in the $HOME/.fluxbox/keys file as described above. I got the :RootMenu part for the Fluxbox menu elsewhere in the wiki and by just studying the existing keys file. Simple after all.

Last edited by stoat; 10-18-2012 at 10:18 AM.
 
1 members found this post helpful.
Old 10-18-2012, 04:03 PM   #5
mariostg
Member
 
Registered: Apr 2011
Location: Gatineau, Quebec
Distribution: OpenBSD
Posts: 80

Original Poster
Rep: Reputation: 5
I was using Openbox before I switched from Arch to Slackware. Slckware comes with Fluxbox so I gave it a try and like it. I guess I have a somewhat decent configuration within Slackware but I will probably return to this post to inspire me.
 
  


Reply



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
[SOLVED] after startx keyboard and mouse not working 0zMe Slackware 4 05-17-2012 08:28 AM
Keyboard Input lost on startx, icon text unreadable cov Linux - Hardware 2 04-20-2011 06:58 AM
Lost my startx - black screen with mouse cursor Dobbin22 Linux - Newbie 2 05-26-2010 09:28 AM
No keyboard/mouse after startx Scruff Linux - Hardware 1 06-06-2004 09:55 PM
loose Keyboard and mouse after startx Bishop942 Linux - Hardware 4 05-29-2003 04:44 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 11:20 PM.

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