LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook
User Name
Password
Linux - Laptop and Netbook Having a problem installing or configuring Linux on your laptop? Need help running Linux on your netbook? This forum is for you. This forum is for any topics relating to Linux and either traditional laptops or netbooks (such as the Asus EEE PC, Everex CloudBook or MSI Wind).

Notices

Reply
 
Search this Thread
Old 12-03-2012, 08:48 AM   #1
BrutalMusic
LQ Newbie
 
Registered: Apr 2006
Distribution: Slackware 14.1 64-bit
Posts: 28

Rep: Reputation: 1
Layout initially different between USB keyboard and laptop's integrated keyboard


First off, a quick thanks to everyone who makes Slackware possible, including those who provide the awesome tech support here.

I'm running Slackware 14.0 on an HP dv2945se. It is a fresh, full install to which I have done the following configuration/setup:
  • Updates via slackpkg
  • Use NVidia's proprietary driver
  • Custom xinitrc and fluxbox config files (but if I revert to the default .fluxbox/keys file the problem persists)
  • Keyboard layout changed to Dvorak in /etc/X11/xorg.conf.d/90-keyboard-layout.conf (and confirmed as working in fluxbox)
  • Install wicd

I take notes at each step of installation, and according to them, there was no problem until after I installed wicd.

After I installed wicd I rebooted, and then a call to startx returned, in part:

xmodmap: unable to open file '/home/username/.Xmodmap' for reading

So I commented xmodmap out in .fluxbox/startup

All is well except that when I start fluxbox, my USB wireless keyboard (Logitech K750) types QWERTY until I use the laptop's integrated keyboard (which types Dvorak).

After I've used the integrated keyboard once, the USB keyboard reliably types Dvorak as it should. The laptop's integrated keyboard always works as it should.

It's no real inconvenience to use this workaround, of course. But if the same problem happened to a desktop, the user wouldn't have access to the workaround.

Thanks!
 
Old 12-03-2012, 04:11 PM   #2
zsd
Member
 
Registered: Dec 2005
Location: Nova Scotia
Distribution: Slackware
Posts: 69

Rep: Reputation: 23
For starters, did you used to have a .Xmodmap before?

And is there an unreadable .Xmodmap in your home directory now?
(For example, maybe something you did caused your file to get over-written
with one owned by root, and that file does not have general read perms.)

Jim
 
Old 12-03-2012, 05:36 PM   #3
BrutalMusic
LQ Newbie
 
Registered: Apr 2006
Distribution: Slackware 14.1 64-bit
Posts: 28

Original Poster
Rep: Reputation: 1
Quote:
Originally Posted by zsd View Post
For starters, did you used to have a .Xmodmap before?

And is there an unreadable .Xmodmap in your home directory now?
I have never created an .Xmodmap file, so the only way there would be one is if it was automatically generated upon install or some such. I use .fluxbox/keys.

When the error message occurred, I used slocate to determine that there's no .Xmodmap present on my system.

Thanks!
 
Old 12-04-2012, 02:03 AM   #4
BrutalMusic
LQ Newbie
 
Registered: Apr 2006
Distribution: Slackware 14.1 64-bit
Posts: 28

Original Poster
Rep: Reputation: 1
Now that I'm at my computer, here's the output of updatedb then slocate.

Code:
Script started on Mon 03 Dec 2012 11:00:11 PM PST
bash-4.2# updatedb
bash-4.2# slocate -i xmodmap
/etc/X11/xinit/README.Xmodmap
/usr/share/zsh/5.0.0/functions/_xmodmap
/usr/share/vim/vim73/ftplugin/xmodmap.vim
/usr/share/vim/vim73/syntax/xmodmap.vim
/usr/doc/kbd-1.15.3/dvorak/dvorak.xmodmap
/usr/doc/kbd-1.15.3/dvorak/dvorak-l.xmodmap
/usr/doc/kbd-1.15.3/dvorak/dvorak-r.xmodmap
/usr/doc/xmodmap-1.0.7
/usr/doc/xmodmap-1.0.7/INSTALL
/usr/doc/xmodmap-1.0.7/AUTHORS
/usr/doc/xmodmap-1.0.7/COPYING
/usr/doc/xmodmap-1.0.7/README
/usr/doc/xmodmap-1.0.7/ChangeLog
/usr/man/man1/xmodmap.1.gz
/usr/bin/xmodmap
/var/log/packages/xmodmap-1.0.7-i486-1
bash-4.2#
 
Old 12-05-2012, 07:22 AM   #5
zsd
Member
 
Registered: Dec 2005
Location: Nova Scotia
Distribution: Slackware
Posts: 69

Rep: Reputation: 23
Given that the error message was specifically about the /home/username/.Xmodmap file, you could have just used ls to see if it is there.

Anyway, you say you commented something out from .fluxbox/startup.
Perhaps it was just a bit of poor code there?
Did it just say something like
/usr/bin/xmodmap $usermodmap
or
/usr/bin/xmodmap /home/username/.Xmodmap
or equivalent, as opposed to something like (from S64-14.0's /etc/X11/xinit/xinitrc.xfce file)
if [ -f $usermodmap ]; then
/usr/bin/xmodmap $usermodmap
fi

Anyway, this is mostly moot, and probably has nothing to do with your QWERTY issue. On that I regret to report I have no idea.

Jim
 
Old 12-06-2012, 04:07 AM   #6
BrutalMusic
LQ Newbie
 
Registered: Apr 2006
Distribution: Slackware 14.1 64-bit
Posts: 28

Original Poster
Rep: Reputation: 1
Quote:
Originally Posted by zsd View Post
Anyway, you say you commented something out from .fluxbox/startup.
Perhaps it was just a bit of poor code there?
From .fluxbox/startup

Code:
#!/bin/sh
#
# fluxbox startup-script:
#
# Lines starting with a '#' are ignored.

# Change your keymap:
# xmodmap "/home/username/.Xmodmap"
Thanks anyway!
 
Old 02-07-2014, 05:06 AM   #7
BrutalMusic
LQ Newbie
 
Registered: Apr 2006
Distribution: Slackware 14.1 64-bit
Posts: 28

Original Poster
Rep: Reputation: 1
I hope it's okay to put a quick note on such an old thread as I mark it solved...

This turned out to be an issue with the Logitech unifying receiver. Arch's wiki has all the info on it.
 
  


Reply

Tags
keyboard, layout, usb, x11, xmodmap


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
how can i deactivate the integrated keyboard of my laptop hp pavilion ze5500? the_rastaman Gentoo 1 05-31-2010 06:34 PM
Keyboard Layout on a Laptop (7.10) linux4life88 Ubuntu 1 11-19-2007 09:23 PM
Switching keyboard layout - Mandriva2006 - K.D.E. Windows Layout! itz2000 Mandriva 3 08-13-2006 07:43 PM
KDE Keyboard Shortcuts with different Keyboard Layout hellblade Linux - Software 5 04-18-2006 01:40 AM


All times are GMT -5. The time now is 07:01 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration