Re: Macbook pro re-mapping single key

2012-05-04 Thread Riccardo Romoli
Hi, thanks for reply.
Using xev this is what I obtained from the key I would like to re-map:

KeyRelease event, serial 33, synthetic NO, window 0x401,
   root 0x12d, subw 0x0, time 778257, (752,-224), root:(833,354),
   state 0x0, keycode 104 (keysym 0xff8d, KP_Enter), same_screen YES,
   XLookupString gives 1 bytes: (0d) 
   XFilterEvent returns: False

Can you paste the response of your right ALT (Alt Gr) so I can understand
which is its keycode?

Best
Ricca



On Thu, May 3, 2012 at 5:42 AM, Indulekha indule...@theunworthy.com wrote:

 On Wed, May 02, 2012 at 09:00:12PM -0500, Mark Allums wrote:
  On 5/2/2012 5:05 PM, Riccardo Romoli wrote:
  Hi to all,
  
  I'm a newbie of Debian but using the Debian-Wiky I was able to install
  Debian 6 as single boot, on my MacBookPro (v.3.1). The only problem I
  notice, till now, is about the Alt key. I bought the computer as
  used from a German guy ignoring that the keyboard has the particularity
  to has only the left Alt key instead of two. So the right Alt key is
  replaced by a second ENTER and the left Alt key is used as Meta key
  instead of Option key.
  
  I tried to configure the keyboard with the graphical interface but I
  wasn't able solve my problem. If, for example I press Alt+Tab, I was
  able to switch between the different windows, but the Alt key doesn't
  work both in the various text editors (emacs, gedit...) and in the
  terminal, to type the extra character such as tilde, square brackets...
  
  I think I should re-map my keyboard replacing the extra ENTER with the
  Alt(Option) key but I have no idea how to do this.
  
  Do you have any suggestion?
  

 Install the package xev if you don't already have it, and read the
 man page. Xev will allow you to see which key generates what keycode.
 Won't help in the console, but using an xwindows environment you can
 remap your keys as you wish using xmodmap. (read man xmodmap).
 Sorry for the overgeneralization, but I haven't had the need to do this
 in a few years, so only vaguely recall what I did...

 
  When away from home base, remapping would be preferable, but at
  home, you might get a full-sized PC keyboard that works the way you
  expect. You would have to re-configure the key layout every time you
  switched, but it's something to consider.
 

 No problem, you just use shell aliases (or little scripts) and have
 them point to (for example) .xmodmap0 and xmodmap1, as replacements
 for the standard xmodmap. Create keybindings to switch from one to the
 other in your window manager, and at the stroke of a key you can switch
 from one layout to the other.

 I know this is all very general and probably sounds dreadfully opaque,
 but once you have the actual keycodes if you need more help just come back
 and post the details.

 Here's the xev output for my Return key, just to show you what to look
 for. It's different on different keyboards, so this is only an example:

 KeyRelease event, serial 35, synthetic NO, window 0x181,
root 0x128, subw 0x0, time 20931520, (-6,197), root:(15,331),
state 0x0, keycode 36 (keysym 0xff0d, Return), same_screen YES,
XLookupString gives 1 bytes: (0d) 
XFilterEvent returns: False

 So when you see something similar for each key you want to redefine,
 you know you're on to something. :)

 Good luck!

 --
 ❤ ♫ ❤ ♫ ❤ ♫ ❤
  Indulekha


 --
 To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
 with a subject of unsubscribe. Trouble? Contact
 listmas...@lists.debian.org
 Archive: http://lists.debian.org/20120503034212.GA6321@radhesyama




Re: Macbook pro re-mapping single key

2012-05-04 Thread Riccardo Romoli
Hi,
but my problem is that I haven't the key I need on my keyboard! So how can
I find the code with xev if I haven't the key to generate the code itself?

R

On Fri, May 4, 2012 at 5:17 PM, Indulekha indule...@theunworthy.com wrote:

 (NOTE: please reply inline, so as to preserve the discussion
 for the archive. Thanks!)

 On Fri, May 04, 2012 at 11:56:07AM +0200, Riccardo Romoli wrote:
 Hi, thanks for reply.
 Using xev this is what I obtained from the key I would like to re-map:
 KeyRelease event, serial 33, synthetic NO, window 0x401,
root 0x12d, subw 0x0, time 778257, (752,-224), root:(833,354),
state 0x0, keycode 104 (keysym 0xff8d, KP_Enter), same_screen YES,
XLookupString gives 1 bytes: (0d) 
XFilterEvent returns: False
 Can you paste the response of your right ALT (Alt Gr) so I can
 understand which is its keycode?

 You just use xev to get that, as you did above for enter.
 The codes for mine are not useful to you, I only posted
 that to give an idea what to look for.
 :)
 --
 ❤ ♫ ❤ ♫ ❤ ♫ ❤
  Indulekha


 --
 To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
 with a subject of unsubscribe. Trouble? Contact
 listmas...@lists.debian.org
 Archive: http://lists.debian.org/20120504151713.GA8181@radhesyama




Re: Macbook pro re-mapping single key

2012-05-04 Thread Riccardo Romoli
Hi,
I found the easiest way to solve the problem:

https://bugs.launchpad.net/ubuntu/+source/xkeyboard-config/+bug/261573

Regards
Riccardo

On Fri, May 4, 2012 at 6:29 PM, Indulekha indule...@theunworthy.com wrote:

 As a matter of fact, I'm on an incredibly slow, painfully
 unresposive dialup connection -- so I apologise, but it
 may be I can't get to this in anything like a timely fashion.
 Your favorite search engine is your friend, however.
 I use and recommend duckduckgo.com, which showed me
 these links below. I scanned them, and they look pretty good...
 Best of luck! :)


 http://unix.stackexchange.com/questions/4485/reassign-ctl-and-alt-keys-xmodmap-error

 http://superuser.com/questions/2194/remap-keys-in-linux

 --
 ❤ ♫ ❤ ♫ ❤ ♫ ❤
  Indulekha


 --
 To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
 with a subject of unsubscribe. Trouble? Contact
 listmas...@lists.debian.org
 Archive: http://lists.debian.org/20120504162932.GA9385@radhesyama




Macbook pro re-mapping single key

2012-05-02 Thread Riccardo Romoli
Hi to all,

I'm a newbie of Debian but using the Debian-Wiky I was able to install Debian 6 
as single boot, on my MacBookPro (v.3.1). The only problem I notice, till 
now, is about the Alt key. I bought the computer as used from a German guy 
ignoring that the keyboard has the particularity to has only the left Alt key 
instead of two. So the right Alt key is replaced by a second ENTER and the left 
Alt key is used as Meta key instead of Option key.

I tried to configure the keyboard with the graphical interface but I wasn't 
able solve my problem. If, for example I press Alt+Tab, I was able to switch 
between the different windows, but the Alt key doesn't work both in the various 
text editors (emacs, gedit...) and in the terminal, to type the extra character 
such as tilde, square brackets...

I think I should re-map my keyboard replacing the extra ENTER with the 
Alt(Option) key but I have no idea how to do this.

Do you have any suggestion?

Best Ricardo


Sent from iPod


Re: Alt key problem with MacBookPro

2012-05-01 Thread Riccardo Romoli
Hi Daniel,
the problem is that my keyboard has not two alt keys, but only the
left ones. In the alt right key position I have another enter. How can
I replace it with the right alt??

Best
Riccardo

On 4/22/12, Daniel Landau daniel.lan...@iki.fi wrote:
 On Sun, Apr 22, 2012 at 12:47 AM, Riccardo Romoli ric.rom...@gmail.com
 wrote:
 my name is Riccardo, and I'm a newbie of Debian. Using the Debian-Wiky
 I was able to install Debian 6 as single boot on my MacBookPro
 (v.3.1). The only problem I notice, till now, is about the Alt key
 that doesn't work. I tried to configure the keyboard with the
 graphical interface but I wasn't able solve my problem. If, for
 example I press Alt+Tab,  I was able to switch between the different
 windows, but the Alt key doesn't work both in the various text editors
 (emacs, gedit...) and in the terminal, to type the extra character
 such as tilde, square brackets...

 How can I solve this problem? Is there a way to manually map the
 keyboard??

 Did you choose the Mac/Apple layout when prompted? On my Macbook the
 left alt is the meta-key (for window switching, M-x etc. keybindings
 in Emacs) and the right alt is used for various extra characters. So
 the left and right alt are (usually) not the same key on an Apple
 keyboard in GNU/Linux.

 Daniel Landau



-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/CAHiM-bNta21HonZZHM3ja6v=n3qaelbyfycgpsvkgqwew2i...@mail.gmail.com



Alt key problem with MacBookPro

2012-04-21 Thread Riccardo Romoli
Hi to all,
my name is Riccardo, and I'm a newbie of Debian. Using the Debian-Wiky
I was able to install Debian 6 as single boot on my MacBookPro
(v.3.1). The only problem I notice, till now, is about the Alt key
that doesn't work. I tried to configure the keyboard with the
graphical interface but I wasn't able solve my problem. If, for
example I press Alt+Tab,  I was able to switch between the different
windows, but the Alt key doesn't work both in the various text editors
(emacs, gedit...) and in the terminal, to type the extra character
such as tilde, square brackets...

How can I solve this problem? Is there a way to manually map the keyboard??

Best
Ricardo


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/CAHiM-bPfODaqze3iqBnjgh=Lw4EfjVe5=j8kjzjdve47hlk...@mail.gmail.com