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 > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 03-23-2012, 09:57 PM   #1
mattca
Member
 
Registered: Jan 2009
Distribution: Slackware 14.1
Posts: 333

Rep: Reputation: 56
setxkbmap settings reset after suspend


Hi all, I started using a new keyboard layout not too long ago, and I'm having trouble getting the settings to stick when I suspend the computer.

The settings seem to be persist fine in the console, but in X sometimes reset back to qwerty.

I suspend using:

Code:
echo -n mem > /sys/power/state
Is there a script that runs when waking up? I have the command to set the layout in both my xinitrc, and bashrc, and yet it still resets

Any ideas?

xinitrc
Code:
LANG=en_US.UTF-8
export LANG
XMODIFIERS="@im=SCIM"
export XMODIFIERS
GTK_IM_MODULE="scim"
export GTK_IM_MODULE
QT_IM_MODULE="scim"
export QT_IM_MODULE
scim -d&

xrandr --output VGA --mode 1680x1050 --output LVDS --mode 1280x800  --pos 1680x470
feh --bg-center /home/matt/media/images/wallpapers/Dark_Soul_Clouds.jpg
#feh --bg-tile /home/matt/media/images/wallpapers/deathnotel-920412.jpeg 
#setxkbmap -option "ctrl:nocaps"
setxkbmap -layout us -variant dvp -option "ctrl:nocaps"
xmodmap -e "pointer = 3 2 1"
xscreensaver -nosplash &
ratpoison
bashrc
Code:
#!/usr/bin/bash

. ~/.config/prompts/redblue.sh

# prompt script
redblue

set -o vi

alias ls="ls -F --color=auto"

alias grep="grep --color=auto"
alias egrep="egrep --color=auto"
alias fgrep="fgrep --color=auto"

MANPATH=/usr/local/man:/usr/man:/usr/lib/java/man:/usr/share/texmf/man:/usr/local/share/man/
export LESS="-R"
setxkbmap -layout us -variant dvp -option "ctrl:nocaps"
 
  


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] Suspend RAM/Disk Requires Hard Reset antitu Linux - Hardware 3 09-01-2011 11:55 AM
keymap and keyboard repeat rate is reset by pm-suspend, so HAL does not work (!) rusma Linux - Newbie 2 04-22-2010 12:14 PM
How to reset monitor settings to default autodetected settings in openSUSE? chengas123 Linux - General 2 09-17-2008 11:24 AM
Settings reset? TheGeneralsLounge Linux - Newbie 5 04-06-2007 07:27 PM
Settings get reset on reboot xymian Debian 3 02-23-2005 04:53 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 10:41 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