Ubuntu :: Xmodmap Script Does Not Work As A Startup App / Solution For It?

Aug 19, 2010

In previous versions of ubuntu I used to reshuffle the ALT, SHIFT, and TAB keys using xmodmap.

Specifically, I had a file called ~/.xmodmap-mejia which reshuffled the keyboard, and I called that file from the startup applications (I had added it to system>preferences>Startup Applications).

However, in Ubuntu 10.4 it does not work. If I call the script after the computer has loaded, it works perfectly, but it does not have any effect as a startup application. It is as though changes effected by the script that calls ~/.xmodmap-mejia gets overwritten later on by the default keyboard binding.

As things stand right now, I have to run the script manually every time I turn on my laptop. Which, of course, is very annoying.

Any ideas of how to fix this?

View 5 Replies


ADVERTISEMENT

Debian :: 8.1 - Xmodmap Script On Startup

Oct 22, 2015

I recently installed Debian 8.1 on an old (2008 maybe?) macbook. I would like to use the right hand side apple/command key as a right click. I've been using xmodmap commands in the terminal, but I'd like to write a shell script to do it automatically on boot or on login.

I've tried init.d, I've tried crontab, I've tried rc.local.

The xmodmap commands I am calling are Code: Select allxmodmap -e "keycode 134 = Pointer_Button3" and then Code: Select allxkbset m

my shell script is as follows
/usr/keymap
Code: Select all#!/bin/bash
xmodmap -e "keycode 134 = Pointer_Button3"
xkbset m

I've modified keymap to be executable, just typing /usr/keymap into the terminal will map the keys correctly. I've tried with and without the .sh suffix. I've tried adding sh before the file path in crontab. I've also tried adding sleep 20 inside the shell script as well as inside crontab joining the two commands with &&

View 4 Replies View Related

Slackware :: Remapping Keyboard - Xmodmap Doesn't Work

Jun 16, 2011

I have slackware 13.37-64 bit with xfce. I have a "microsoft wired keyboard 600" keyboard and want to remap it to use the right win key as ctrl. With xev i see that the keycode for the specific win key is 134.

Then i run:

Code:

But nothing changes. Even if i manually configure the .Xmodmap file in my /home i see no change at all.

View 3 Replies View Related

Fedora :: Screen Freezes When I Startup Firefox / Solution For This?

Oct 1, 2009

When I startup Firefox Fedora's screen freezes. The only way to restore is to power off and on!

I've tried yum remove/install but the problem persists.

Anyone know a solution?

View 5 Replies View Related

Ubuntu :: KeyBoard Layout Doesn't Work Any More / Solution For This?

Oct 18, 2010

My keyboard layout doesn't work any more from one hour
I don't know why ?
i try to delete layouts like Arabic and USA English and add them again but the problem still working .I'm writing English lang. only.
when i press Alt+shift to change Lang. nothing happened
what i can do now ?
I'm using UBUNTU 10.10

View 3 Replies View Related

Red Hat / Fedora :: Pdf Reader Does Not Work In F13- X86 64 - Solution For This?

Jun 10, 2010

I have fedora 13 (64 bit) in my laptop with athlon amd processor (64 bit). I installed adobe pdf reader. but does not work. any solution?

View 3 Replies View Related

Hardware :: Keyboard Don't Work In Acer Aspire One D250 / Solution For This?

Mar 9, 2010

I'm using netbook Acer Aspire One D250-0Bb pre-installed Windows XP. Now i have Gentoo. I have trouble with Xfce (lastest stable version) , where my keyboard don't react. I can move just with touchpad. I think, it's in X-server driver, but i can't find any information about that.

View 2 Replies View Related

Ubuntu :: Swapping Keys Using Xmodmap?

Jun 6, 2010

I am using an Apple Keyboard (DK-layout) on my PC running Ubuntu 10.4. The problem: My key used to type <, > and is swapped with the key used to type and If I connect a standard PC-keyboard with DK-layout using USB, it works just fine. The problem exists both in the console and X. I solved the problem in the console by installing the console-keymaps package, made a copy of dk-latin1.kmap.gz and swapping keycode 86 with keycode 41 and loading the new keymap with the loadkeys command. I only need to figure out how to load the new keymap at boot time.

However, in X, I want to do exactly the same. I suppose I have to use Xmodmap. I simply can't figure out how to do it.

View 3 Replies View Related

Ubuntu :: Xmodmap In Xinitrc Not Sticking

Sep 8, 2010

So I run "xmodmap" in my xinitrc to make caps lock a second control button, but for some reason its not sticking. I'm not using a desktop environment, just running xmonad.If I run "xmodmap ~/.Xmodmap" once X is started, it works fine, but it won't run in my xinitrc.

View 3 Replies View Related

Ubuntu :: Xmodmap Config File?

Jun 24, 2011

I'm trying to learn swedish, and I want to remap some of my key to be able to write the special chars. xmodmap -pke" gives me the current config, and most of lines are like that (6 keysyms) :

Code:
keycode 24 = a A a A adiaeresis Adiaeresis
But I actually can't access 2 of them, the #3 and #4.

[code]....

View 2 Replies View Related

Ubuntu :: Disable Caps Lock With Xmodmap In Natty?

Apr 29, 2011

I just upgraded machine to natty, after which the xmodmap configuration remapping capslock stopped working (as in not doing anything at all). Running xmodmap manually (-e "clear Lock") doesn't have any visible effect either. I haven't tried doing this on another machine (I'm only close to one machine running ubuntu and reinstalling seems rather overkill), but the same config worked before the upgrade, and is working on another machine running arch.

Is anyone else having these issues and, if so, has anybody found a solution? The line of interest is, simply, "clear Lock".

View 9 Replies View Related

OpenSUSE :: Setxkbmap And Xmodmap Always Conflicting

Jan 26, 2010

To reeanable CTRL-ALT-BKSP (since 11.2), you use:

setxkbmap -option terminate:ctrl_alt_bksp

It works. However if you map keys with xmodmap, it's gone. In whatever order you use them, setxkbmap and xmodmap are always conflicting. Running xmodmap immediately disables CTRL-ALT-BKSP, while running setxbbmap reverses key mappings to their default.

View 3 Replies View Related

General :: Remapping Characters In Xmodmap?

Jun 9, 2010

I am using a Swedish keyboard, and I want to be able to type braces easier.

I planned to map AltGr + to '}' and AltGr + to '{'. However, nothing really changes. I have some other stuff in my .Xmodmap so I know that it gets loaded allright. Here's what I have so far:

keycode 35 = slash asciitilde dead_ogonek section dead_ogonek section
keycode 49 = asciicircum onehalf
keycode 66 = F10
clear Lock

[Code]....

View 1 Replies View Related

General :: How To Map Ctrl-p To Up Arrow Using Xmodmap

Feb 20, 2011

I did read the grammar section of xmodmap but still couldn't figure out how I could do it.

View 1 Replies View Related

General :: Enable Modifiers Via Xmodmap

Jan 2, 2010

I recently got a Logitech G11-keyboard for my Ubuntu 9.10 64-bit box. My question is xmodmap related and not restricted to this particular keyboard, nor to the distro I am using. The keyboard has a.o. 18 G-keys. These have been successfully defined in /usr/share/X11/XKeysymDB as per [URL] and I have a ~/.Xmodmap file that matches keycodes to the names in XKeysymDB.

My .Xmodmap definitions are rather simple, e.g. 'keycode 175 = G1'. So I do not define any value for modifier combinations, nor do I know how to do this.

And here's my real question. How should I define these keys so that the Crl-, Alt-, Meta-, Super- etc modifiers work with these keys?

With the current setup, the modifier versions of these keys do only work for the second keypress, e.g. the first Ctrl-G17 is perceived as a G17 keypress, and the second and remaining Ctrl-G17 presses are correctly received as a Ctrl-G17.

I would be happy to read an explanation of this behaviour, and even more so, about how to properly define them so that the base key as well as the modifier versions would be available.

If the odds are a million to one against something occurring, chances are 50-50 it will.

[URL] and go2 places!

View 10 Replies View Related

Debian Multimedia :: Xmodmap Periodically Resets

Jan 3, 2016

I have a custom .Xmodmap file to change the keyboard layout. The problem is that sometimes the keyboard layout changes back to the default. I have seen the lights on the keyboard blink at times, so I tried unplugging and reconnecting the keyboard and yes - that reset the layout. I can see keyboard removed/detected entries in the logs as well, so I guess my keyboard reconnects sometimes, I don't know why. However the solution from the post earlier (to rename the xmodmap file to ~/.Xmodmap) did not work. So is there another default filename I should use? Or do I have to enable xmodmap to run when a keyboard is plugged in somehow?

The only thing I can think of right now is to monitor /var/log/Xorg.0.log for "Adding input device USB Keyboard" and running xmodmap when that happens... but I'm really hoping for a better solution.If I can't fix the xmodmap problem, maybe I can fix the usb disconnects.I read something about power saving settings for usb. After some digging, I found that those settings are in /sys/bus/usb/devices/.../power/. However, disabling autosuspend for the hub did not seem to work (it was already disabled for the keyboard).

But I found something else in kern.log. Perhaps the keyboard disconnects has something to do with static electricity?

Code: Select all[ 7078.175830] usb 1-10-port3: disabled by hub (EMI?), re-enabling...
[ 7078.175888] usb 1-10.3: USB disconnect, device number 4
[ 7078.624349] usb 1-10.3: new full-speed USB device number 6 using xhci_hcd
[ 7078.729012] usb 1-10.3: New USB device found, idVendor=04d9, idProduct=0125
[ 7078.729014] usb 1-10.3: New USB device strings: Mfr=0, Product=2, SerialNumber=0
[ 7078.729016] usb 1-10.3: Product: USB Keyboard

View 0 Replies View Related

General :: How To Swap Alt And Windows Keys With Xmodmap

May 2, 2011

I have a Mac keyboard where the Alt/Win (i.e. Option/Command) keys are inverted compared to a regular PC keyboard, and I'd like to swap them. I haven't had any luck with xmodmap so far. The standard configuration is as follows:

shift Shift_L (0x32), Shift_R (0x3e)
lock Caps_Lock (0x42)
control Control_L (0x25), Control_R (0x69)

[code]....

View 1 Replies View Related

Ubuntu :: Getting Awn To Work On Startup?

Dec 28, 2010

recently upgraded to lucid lynx from karmic in which I used AWN with no problems.However, I now can't get it to work on start up, even though it is listed as one of the startup applications and the box for activate on start up is checked in the AWN manager. I have compiz installed and AWN works fine when I run it once the computer is turned on. It may be because compiz isn't properly listed as a startup application as I don't know the correct command, however other compiz actions work on start up!

Another minor point is that before I had the settings so that the dock was always hidden unless the cursor was over the area. I have played around with the preferences but can't find the right setting to make that happen! I've tried setting the behaviour as Intellihide which seems the most likely to me, but it just acts the same as window dodge... So maybe it's just not working properly?

View 4 Replies View Related

Software :: Make A Key Print A Different Character While A Certain Other Key Is Pressed Using Xmodmap?

Mar 10, 2010

Is it possible to make a key print a different character while a certain other key is pressed using xmodmap?

View 14 Replies View Related

Ubuntu :: Xmodmap Script Note: This Disables Iso_level3_shift/mode_switch, Maybe Fix Later Clear Control?

Aug 14, 2010

I'm using this xmodmap script to move the modifiers the way I like them.

Code:
!note: This disables iso_level3_shift/mode_switch, maybe fix later
clear control

[code]....

View 1 Replies View Related

Fedora :: F10, F11- Remap Keys ( Disable Caps Lock And So On With Xmodmap )?

Jun 20, 2009

In Fedora 10 they decided to change to "evdev", so if you used xmodmap in F9, these mapping have changed in F10 and F11 for that matter. In order to find the new key values start

Code:

xev and press a button you would like to know the keycode for. Write this value down. When done, make a file ".xmodmap" and put in the values. "man xmodmap" explains the format. Not easy to understand! So here is how mine looks like.

Code:
clear Lock
keycode 112 = Caps_Lock
keycode 118 = Delete
keycode 119 = Home

[Code]...

This layout is MUCH more logical than the original. Now Delete is the key just to the right of the Backspace key. Back spaces deletes to the left, and Delete deletes to the right, so these keys shoudl of course be next to each other Page Up, Page Down, Home, and End now have the same structure as the arrow keys below. This layout makes it much easier to navigate without looking at the keys, because now the layout makes sense And why shouldn't 0 be to the left of 1? of course it should. 0 is lower than 1.

View 1 Replies View Related

Ubuntu :: Internet Won't Work Without Restarting It After Startup

May 16, 2010

After upgrading to 10.04 I've had to run /etc/init.d networking restart to get my internet connection to work after startup on my desktop computer. Any ideas on how to find out what's wrong and how to fix it? I didn't uprage my laptop yet and it still works just fine so I'm thinking this is related to the upgrade. Softwarewise the only relevant networking related difference between my desktop and laptop is the ubuntu version and that I have openvpn set up on the desktop for work related stuff.

View 2 Replies View Related

Ubuntu :: Mount Hd In The Startup But Id Didn't Work

Jul 20, 2010

i did it to mount my hd in the startup but id didnt work, so i want to undo it, and if somebody can tell how to make my hd to be mounted since the startup

[Code]...

View 5 Replies View Related

Ubuntu :: Startup Script Doesn't Work?

Jul 24, 2010

I try to run a bash script when the machine boots up. I followed the exactly the same procedure as stated in [URL] I tried to use update-rc.d and rc.local. The both ways still dont make the bash script automatically run when it boots up in Ubuntu 9.04. The script can be successfully executed when I log in as root and run it manually.

View 5 Replies View Related

Ubuntu :: XBMC 9.11 - 2 To 4 Controllers Work From Startup?

Aug 19, 2010

I have downloaded and compiled the xboxdriver from Grumbels git hub. Running 9.10 minimal with xbmc 9.11. I can run the driver manually and actually run multiple instances of the driver for multiple controllers. I cannot however get more than one instance of the driver to start up at boot. I have the freshly compiled driver and daemon that came with source files in /usr/local/bin.

I can run the driver via 'sudo /usr/local/bin/xboxdrv --wid0', I can even get a second wireless controller working with 'sudo /usr/local/bin/xboxdrv --wid1'

When I add the driver to /etc/rc.local it runs fine on startup. The problem is I want more than one instance running. When I add the exact same line right under it except change the wid0 to wid1 it will not automaticly run the second driver. I also can get zero activity from the daemon. I have tried adding it to the rc.local, or /etc/init.d/local (I think someone mentioned it somewhere) with no luck.

I am not quite sure what I am doing wrong. My ultimate goal is to have 2 minimum to 4 maximum controllers work from startup. I want to add emulators to a xbmc htpc and just dont want to have to worry about manually starting drivers. I have forgone using xpad due to its somewhat limited support for wireless xbox360 controllers.

View 5 Replies View Related

General :: Script Run At Startup Does Not Work Under Ubuntu 10.04 LTS

Apr 29, 2011

I've got a script than ran fine under Ubuntu 7.10 but I'm having a problem with it under Ubuntu 10.04 LTS. The script runs fine when executed via sudo. The script is in /etc/init.d, it's executable, I registered it with update-rc.d, and (according to ps) it's running. It just doesn't work.

Here's the script:
#!/bin/bash
cd /home/xxxx
while [ true ]; do
kermit -q <pc.kcs
sleep 5
done

kermit is installed and runs properly, the directory /home/xxxx exists, the file pc.kcs exists (remember: the script runs when executed via sudo).

View 6 Replies View Related

Ubuntu :: Autostart - Can't Get Startup Script For My Hlds Server To Work

Jan 3, 2011

I'm usuing clean installation of Ubuntu Server 10.10 with hlds on it. I can't get startup script for my hlds server to work, so i must lauch it always "by hands"...

I have done these steps:

Quote:

with content:

Quote:

Then given permission for it and added for autoload on startup

Quote:

When i lauch it as usual

Quote:

or

Quote:

Server launches and work normally, but it never launches on startup... Just wrotes BEFOREFALL and AFTERFALL55 into /var/log/syslog and that's all... Also tried using rc.local, but it never works too... In what can be the trouble? I think i checked all possible variants already...

View 3 Replies View Related

Red Hat / Fedora :: Ipmitool Doesnt Work During Startup On RHEL 4.5?

Aug 31, 2010

trying to use ipmitool during startup to detect certain hardware and run some configuration. This worked fine for me on RHEL 5.4 but only after smartd had started. For some reason I cant get it to work any time before I get a login prompt on RHEL 4.5

View 2 Replies View Related

General :: Startup Disk Creator Doesn't Work?

Nov 23, 2010

when i click on the "startup disk creator" in control centre it dosen do anything?

View 2 Replies View Related

Ubuntu :: Integrated Card Reader Doesn't Work And Causes Mouse To Hang At Startup

Nov 24, 2010

Everything worked fine in Kubuntu 10.04 (64-bit). On the upgrade to 10.10 (64-bit) it takes about a minute until I can move the mouse after startup and the integrated memory card reader doesn't work (but the green LED which used to only come on when there was a card in there is now always on). This has been discussed twice before: here (closed and solved by unplugging cardreader which I do not want to do) and here (unsolved but closed as maverick no longer in beta) dmesg (note the errer -110) follows. Let me know if I can/should include any other logs/info!

Code:
[ 13.575002] EXT4-fs (sda2): re-mounted. Opts: errors=remount-ro
[ 13.790470] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null)
[ 13.903728] EXT4-fs (sda4): mounted filesystem with ordered data mode. Opts: (null)
[ 16.280020] usb 1-5: device descriptor read/64, error -110
[ 17.375755] sky2 0000:02:00.0: eth0: enabling interface
[ 17.376174] ADDRCONF(NETDEV_UP): eth0: link is not ready
[ 17.377028] type=1400 audit(1290608578.996:5): apparmor="STATUS" operation="profile_load"
[Code]......

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved