Re: [SOLVED] Dual screens / keyboard layout

2009-07-10 Thread Arie Skliarouk
Hi,

Do you mean multiseat? There is a nice howto about that:
http://netpatia.blogspot.com/2009/06/multiseat-in-ubuntu-904.html

It works good enough here with two USB keyboards and two USB mouses.

--
Arie



On Fri, Jul 10, 2009 at 01:15, Aviram Jenik avi...@jenik.com wrote:

 On Wednesday 20 May 2009 15:33:48 Aviram Jenik wrote:
 
 
  Second question: When I connect a USB keyboard it does not have the
 correct
  layout. I need to go to the keyboard layout and hit 'apply' for it to
  enforce the layout on the USB keyboard as well. Since xorg.conf is now
  pase', does anyone know how to solve this issue?
 

 Answering my own question. This appears to be a known bug:

 https://bugs.launchpad.net/ubuntu/+source/xserver-xorg-input-evdev/+bug/376592

 The workaround is to modify the console-setup variables that are read
 by /usr/lib/hal/debian-setup-keyboard (the script that runs when a USB
 keyboard is plugged in).

 Change:
 /etc/default/console-setup

 and modify the XKBLAYOUT line to read:
 XKBLAYOUT=us,il


 - Aviram

 ___
 Linux-il mailing list
 Linux-il@cs.huji.ac.il
 http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: [SOLVED] Dual screens / keyboard layout

2009-07-10 Thread Aviram Jenik
On Friday 10 July 2009 05:09:08 Arie Skliarouk wrote:
 Hi,

 Do you mean multiseat? There is a nice howto about that:
 http://netpatia.blogspot.com/2009/06/multiseat-in-ubuntu-904.html

 It works good enough here with two USB keyboards and two USB mouses.

No.  was talking about how connecting a USB keyboard to a laptop (while gnome 
is running) deletes the keyboard layout, and for example loses the 
Hebrew-switching hotkeys. It's apparently a known bug in xorg:
https://bugs.launchpad.net/ubuntu/+source/xserver-xorg-input-evdev/+bug/376592


 --
 Arie


- Aviram

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


[SOLVED] Dual screens / keyboard layout

2009-07-09 Thread Aviram Jenik
On Wednesday 20 May 2009 15:33:48 Aviram Jenik wrote:


 Second question: When I connect a USB keyboard it does not have the correct
 layout. I need to go to the keyboard layout and hit 'apply' for it to
 enforce the layout on the USB keyboard as well. Since xorg.conf is now
   
   
 
 pase', does anyone know how to solve this issue?


Answering my own question. This appears to be a known bug:
https://bugs.launchpad.net/ubuntu/+source/xserver-xorg-input-evdev/+bug/376592

The workaround is to modify the console-setup variables that are read 
by /usr/lib/hal/debian-setup-keyboard (the script that runs when a USB 
keyboard is plugged in).

Change:
/etc/default/console-setup

and modify the XKBLAYOUT line to read:
XKBLAYOUT=us,il


- Aviram

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: Dual screens / keyboard layout

2009-05-21 Thread sara fink
Which graphic card you use for the 2nd monitor. I ask because there are
specific tools that deal with these resolutions for nvidia, ati etc.

I couldn't find so far a script that runs when the 2nd screen is plugged. As
far as I know, xorg.conf does this. My logic says that a fork should be
created. you can check with the command pstree.
http://www.linfo.org/pstree.html

Other way to check if there is a script that runs is to use the following
command when you are at /
grep -ri expression *

This will look recursively through all the file system and find if there is
such a script.



On Thu, May 21, 2009 at 3:32 AM, Aviram Jenik avi...@jenik.com wrote:

 On Wednesday 20 May 2009 17:16:20 sara fink wrote:
   Now any clues on setting the right video resolution automagically?
 
  do you still want to work with xorg.conf or without?

 Neither; I want to find the script that runs when the 2nd screen is plugged
 in. Once that happens I'll run xrandr myself.

 - Aviram



___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: Dual screens / keyboard layout

2009-05-21 Thread Aviram Jenik
On Thursday 21 May 2009 03:38:38 sara fink wrote:
 Which graphic card you use for the 2nd monitor. I ask because there are
 specific tools that deal with these resolutions for nvidia, ati etc.

I have the tool - xrandr works perfectly. Also, ubuntu resizes the screen when 
the new monitor is plugged/unplugged, I just don't know what it runs.


 I couldn't find so far a script that runs when the 2nd screen is plugged.
 As far as I know, xorg.conf does this. My logic says that a fork should be
 created. you can check with the command pstree.
 http://www.linfo.org/pstree.html

 Other way to check if there is a script that runs is to use the following
 command when you are at /
 grep -ri expression *

 This will look recursively through all the file system and find if there is
 such a script.

Good idea, I'll try and report back.

- Aviram

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Dual screens / keyboard layout

2009-05-20 Thread Aviram Jenik
To hijack the 'ubuntu sucks' thread (though it really does suck), here is a 
tip, and two questions:

- For the guy that asked about dual screens not showing the best resolution, 
open your terminal and type:

xrandr --auto

if that doesn't get you the optimal resolution, do:

xrandr -q

see what your monitor is called (VGA, or TMDS-1 or something similar) and 
then do:

xrandr --output TMDS-1 --auto

This will set your resolution to the best xrandr thinks it can do, using the 
current 'virtual screen' settings. If you want to over rider what xrand 
thinks it's best do:

xrandr --output [bla] --mode 1280x1024 (or similar)



Now my question: X automatically detects when I plug in the 2nd monitor. I'd 
like to run xrandr when that happens to set it to the 'correct' resolution. 
Does anybody know what scripts runs on this hot-plug detection?


Second question: When I connect a USB keyboard it does not have the correct 
layout. I need to go to the keyboard layout and hit 'apply' for it to enforce 
the layout on the USB keyboard as well. Since xorg.conf is now pase', does 
anyone know how to solve this issue?

- Aviram

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: Dual screens / keyboard layout

2009-05-20 Thread sara fink
for keyboard layout, please take a look at this link:
http://www.gentoo.org/proj/en/desktop/x/x11/xorg-server-1.5-upgrade-guide.xml

part 2 configuring input. It should be the same for other distributions as
well.


On Thu, May 21, 2009 at 1:33 AM, Aviram Jenik avi...@jenik.com wrote:

 To hijack the 'ubuntu sucks' thread (though it really does suck), here is a
 tip, and two questions:

 - For the guy that asked about dual screens not showing the best
 resolution,
 open your terminal and type:

 xrandr --auto

 if that doesn't get you the optimal resolution, do:

 xrandr -q

 see what your monitor is called (VGA, or TMDS-1 or something similar)
 and
 then do:

 xrandr --output TMDS-1 --auto

 This will set your resolution to the best xrandr thinks it can do, using
 the
 current 'virtual screen' settings. If you want to over rider what xrand
 thinks it's best do:

 xrandr --output [bla] --mode 1280x1024 (or similar)



 Now my question: X automatically detects when I plug in the 2nd monitor.
 I'd
 like to run xrandr when that happens to set it to the 'correct' resolution.
 Does anybody know what scripts runs on this hot-plug detection?


 Second question: When I connect a USB keyboard it does not have the correct
 layout. I need to go to the keyboard layout and hit 'apply' for it to
 enforce
 the layout on the USB keyboard as well. Since xorg.conf is now pase', does
 anyone know how to solve this issue?

 - Aviram

 ___
 Linux-il mailing list
 Linux-il@cs.huji.ac.il
 http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: Dual screens / keyboard layout

2009-05-20 Thread Aviram Jenik
On Wednesday 20 May 2009 16:06:08 sara fink wrote:
 for keyboard layout, please take a look at this link:
 http://www.gentoo.org/proj/en/desktop/x/x11/xorg-server-1.5-upgrade-guide.x
ml

 part 2 configuring input. It should be the same for other distributions as
 well.

Beautiful! That give me the crucial clue to a previous Linux-IL post:
http://www.mail-archive.com/linux-il@cs.huji.ac.il/msg54791.html

That gives a step-by-step on how to do Hebrew keyboard layouts thanks Sara! 
(and Meir for posting the instructions 2 months ago...)



Now any clues on setting the right video resolution automagically?

- Aviram

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: Dual screens / keyboard layout

2009-05-20 Thread sara fink




 Now any clues on setting the right video resolution automagically?


do you still want to work with xorg.conf or without?



 - Aviram

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: Dual screens / keyboard layout

2009-05-20 Thread Aviram Jenik
On Wednesday 20 May 2009 17:16:20 sara fink wrote:
  Now any clues on setting the right video resolution automagically?

 do you still want to work with xorg.conf or without?

Neither; I want to find the script that runs when the 2nd screen is plugged 
in. Once that happens I'll run xrandr myself.

- Aviram



___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il