Getting mouse buttons to work

2011-02-15 Thread Dotan Cohen
Hi all, first off I must confess that this is a crosspost. I posted a
similar question to the Debian list, then to the Fedora list, but it's
not getting very far and I know that there are some smart folks here
who could probably help.

I have a nice new Teac OX-1100 mouse with two extra multimedia buttons
that supposedly perform the Zoom functions in Windows. When I try to
get the scancodes with xev, xbindkeys -k, showkey, or showkey
-s then I see no output. There are some other functional keys on this
mouse which also show no output with those tools, such as the side
scroll feature, so I suspect that there must be _some_ way to get the
codes.

Other than Xev, Xbindkeys, and Showkey, what tools can I use? I
specifically bought this mouse because of the location of the two
extra keys, as I have a manual disability and cannot use the special
keys of regular mice.

This is the rodent:
✈ganymede:~$ grep -i mouse /var/log/Xorg.0.log
[15.197] (==) RADEON(0): Silken mouse enabled
[15.289] (II) Microsoft Natural® Ergonomic Keyboard 4000: Found 1
mouse buttons
[15.289] (II) Microsoft Natural® Ergonomic Keyboard 4000:
Configuring as mouse
[15.292] (II) config/udev: Adding input device MLK OX-1100
wireless Laser Mouse (/dev/input/event2)
[15.292] (**) MLK OX-1100 wireless Laser Mouse: Applying
InputClass evdev pointer catchall
[15.292] (**) MLK OX-1100 wireless Laser Mouse: Applying
InputClass evdev keyboard catchall
[15.292] (**) MLK OX-1100 wireless Laser Mouse: always reports core events
[15.292] (**) MLK OX-1100 wireless Laser Mouse: Device: /dev/input/event2
[15.300] (II) MLK OX-1100 wireless Laser Mouse: Found 9 mouse buttons
[15.300] (II) MLK OX-1100 wireless Laser Mouse: Found scroll wheel(s)
[15.300] (II) MLK OX-1100 wireless Laser Mouse: Found relative axes
[15.300] (II) MLK OX-1100 wireless Laser Mouse: Found x and y relative axes
[15.300] (II) MLK OX-1100 wireless Laser Mouse: Found absolute axes
[15.300] (II) MLK OX-1100 wireless Laser Mouse: Found keys
[15.300] (II) MLK OX-1100 wireless Laser Mouse: Configuring as mouse
[15.300] (II) MLK OX-1100 wireless Laser Mouse: Configuring as keyboard
[15.300] (**) MLK OX-1100 wireless Laser Mouse: YAxisMapping:
buttons 4 and 5
[15.300] (**) MLK OX-1100 wireless Laser Mouse:
EmulateWheelButton: 4, EmulateWheelInertia: 10, EmulateWheelTimeout:
200
[15.300] (II) XINPUT: Adding extended input device MLK OX-1100
wireless Laser Mouse (type: KEYBOARD)
[15.301] (II) MLK OX-1100 wireless Laser Mouse: initialized for
relative axes.
[15.301] (WW) MLK OX-1100 wireless Laser Mouse: ignoring absolute axes.
[15.301] (II) config/udev: Adding input device MLK OX-1100
wireless Laser Mouse (/dev/input/mouse0)


However, 10 of the 12 buttons work, not just the 9 that it found. I've
tried to google a picture of the mouse, I see no info on Teac mice
even on the Teac website. The buttons are zoom buttons that I
suppose are activated by a Windows driver on the OS that the package
states that it supports.

Thanks in advance for any advice on how to continue!

-- 
Dotan Cohen

http://gibberish.co.il
http://what-is-what.com

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


Re: Getting mouse buttons to work

2011-02-15 Thread Yedidyah Bar-David
On Tue, Feb 15, 2011 at 10:44:08AM +0200, Dotan Cohen wrote:
 Hi all, first off I must confess that this is a crosspost. I posted a
 similar question to the Debian list, then to the Fedora list, but it's
 not getting very far and I know that there are some smart folks here
 who could probably help.
 
 I have a nice new Teac OX-1100 mouse with two extra multimedia buttons
 that supposedly perform the Zoom functions in Windows. When I try to
 get the scancodes with xev, xbindkeys -k, showkey, or showkey
 -s then I see no output. There are some other functional keys on this
 mouse which also show no output with those tools, such as the side
 scroll feature, so I suspect that there must be _some_ way to get the
 codes.
 
 Other than Xev, Xbindkeys, and Showkey, what tools can I use? I
 specifically bought this mouse because of the location of the two
 extra keys, as I have a manual disability and cannot use the special
 keys of regular mice.
 
 This is the rodent:
 ✈ganymede:~$ grep -i mouse /var/log/Xorg.0.log
 [15.197] (==) RADEON(0): Silken mouse enabled
 [15.289] (II) Microsoft Natural® Ergonomic Keyboard 4000: Found 1
 mouse buttons
 [15.289] (II) Microsoft Natural® Ergonomic Keyboard 4000:
 Configuring as mouse
 [15.292] (II) config/udev: Adding input device MLK OX-1100
 wireless Laser Mouse (/dev/input/event2)
 [15.292] (**) MLK OX-1100 wireless Laser Mouse: Applying
 InputClass evdev pointer catchall
 [15.292] (**) MLK OX-1100 wireless Laser Mouse: Applying
 InputClass evdev keyboard catchall
 [15.292] (**) MLK OX-1100 wireless Laser Mouse: always reports core events
 [15.292] (**) MLK OX-1100 wireless Laser Mouse: Device: 
 /dev/input/event2
 [15.300] (II) MLK OX-1100 wireless Laser Mouse: Found 9 mouse buttons
 [15.300] (II) MLK OX-1100 wireless Laser Mouse: Found scroll wheel(s)
 [15.300] (II) MLK OX-1100 wireless Laser Mouse: Found relative axes
 [15.300] (II) MLK OX-1100 wireless Laser Mouse: Found x and y relative 
 axes
 [15.300] (II) MLK OX-1100 wireless Laser Mouse: Found absolute axes
 [15.300] (II) MLK OX-1100 wireless Laser Mouse: Found keys
 [15.300] (II) MLK OX-1100 wireless Laser Mouse: Configuring as mouse
 [15.300] (II) MLK OX-1100 wireless Laser Mouse: Configuring as keyboard
 [15.300] (**) MLK OX-1100 wireless Laser Mouse: YAxisMapping:
 buttons 4 and 5
 [15.300] (**) MLK OX-1100 wireless Laser Mouse:
 EmulateWheelButton: 4, EmulateWheelInertia: 10, EmulateWheelTimeout:
 200
 [15.300] (II) XINPUT: Adding extended input device MLK OX-1100
 wireless Laser Mouse (type: KEYBOARD)
 [15.301] (II) MLK OX-1100 wireless Laser Mouse: initialized for
 relative axes.
 [15.301] (WW) MLK OX-1100 wireless Laser Mouse: ignoring absolute axes.
 [15.301] (II) config/udev: Adding input device MLK OX-1100
 wireless Laser Mouse (/dev/input/mouse0)
 
 
 However, 10 of the 12 buttons work, not just the 9 that it found. I've
 tried to google a picture of the mouse, I see no info on Teac mice
 even on the Teac website. The buttons are zoom buttons that I
 suppose are activated by a Windows driver on the OS that the package
 states that it supports.
 
 Thanks in advance for any advice on how to continue!

I have no idea about the specific mouse or issue, but other places you
can check are:

1. Outside of X, do
od -tx1 /dev/input/mice
then press various buttons and see what happens.

2. Try playing with acpi/acpid. E.g., from the examples of acpid
- look at /usr/share/doc/acpid/examples/default{,.sh}
(or at least that's where they are on my laptop - Debian Lenny).
I personally managed to make Fn F7 move between internal/external
monitor by playing with it and an example I once found on google -
I think it was this one:
http://www.thinkwiki.org/wiki/Sample_Fn-F7_script

I have no idea if you can get acpi events from normal keys (not Fn)
and did not try this (yet?).
-- 
Didi


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


Re: Getting mouse buttons to work

2011-02-15 Thread Dotan Cohen
On Tue, Feb 15, 2011 at 11:19, Yedidyah Bar-David
linux...@didi.bardavid.org wrote:
 I have no idea about the specific mouse or issue, but other places you
 can check are:

 1. Outside of X, do
 od -tx1 /dev/input/mice
 then press various buttons and see what happens.


Interesting approach. In fact, even buttons that _do_ work did not
reliably give any output. However, I could get absolutely zero output
from the buttons in question.


 2. Try playing with acpi/acpid. E.g., from the examples of acpid
 - look at /usr/share/doc/acpid/examples/default{,.sh}
 (or at least that's where they are on my laptop - Debian Lenny).
 I personally managed to make Fn F7 move between internal/external
 monitor by playing with it and an example I once found on google -
 I think it was this one:
 http://www.thinkwiki.org/wiki/Sample_Fn-F7_script

 I have no idea if you can get acpi events from normal keys (not Fn)
 and did not try this (yet?).


Thanks, but I don't see how I could adapt that to a mouse. In any
case, it would have to be after I get a scancode from the device
buttons.

-- 
Dotan Cohen

http://gibberish.co.il
http://what-is-what.com

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


Re: [Haifux] Getting mouse buttons to work

2011-02-15 Thread guy keren

perhaps try to switch to a runlevel that does not have X window running.
it could be that the X window code is competing for these events - and
when you make tests, you don't want to have that.

--guy


On Tue, 2011-02-15 at 11:55 +0200, Dotan Cohen wrote:
 On Tue, Feb 15, 2011 at 11:19, Yedidyah Bar-David
 linux...@didi.bardavid.org wrote:
  I have no idea about the specific mouse or issue, but other places you
  can check are:
 
  1. Outside of X, do
  od -tx1 /dev/input/mice
  then press various buttons and see what happens.
 
 
 Interesting approach. In fact, even buttons that _do_ work did not
 reliably give any output. However, I could get absolutely zero output
 from the buttons in question.
 
 
  2. Try playing with acpi/acpid. E.g., from the examples of acpid
  - look at /usr/share/doc/acpid/examples/default{,.sh}
  (or at least that's where they are on my laptop - Debian Lenny).
  I personally managed to make Fn F7 move between internal/external
  monitor by playing with it and an example I once found on google -
  I think it was this one:
  http://www.thinkwiki.org/wiki/Sample_Fn-F7_script
 
  I have no idea if you can get acpi events from normal keys (not Fn)
  and did not try this (yet?).
 
 
 Thanks, but I don't see how I could adapt that to a mouse. In any
 case, it would have to be after I get a scancode from the device
 buttons.
 



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


Re: Getting mouse buttons to work

2011-02-15 Thread Dotan Cohen
Here is a picture of the rodent, the buttons in question are the two
Zoom buttons on the upper left:
http://www.pompa.co.il/images/ItemPics%5COX1100.jpg

The two multimedia buttons on the left side of the mouse (below the
Zoom buttons in the picture) work as expected, as does the four-way
scroll.


-- 
Dotan Cohen

http://gibberish.co.il
http://what-is-what.com

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


Fwd: Hamakor General Assembly on Thu, 17-Feb-2011 in Shenkar

2011-02-15 Thread Shlomi Fish
Hi all,

this a reminder that the next Hamakor General Assembly will be two days from 
now on Thursday, 17-February-2011. More details below.

Regards,

Shlomi Fish

--  Forwarded Message  --

Subject: Hamakor General Assembly on Thu, 17-Feb-2011 in Shenkar
Date: Tuesday 01 Feb 2011, 16:05:58
From: Shlomi Fish shlo...@iglu.org.il
To: Linux-IL linux-il@cs.huji.ac.il

Hi all,

Hamakor, the Israeli Non-profit organisation for Free Software and Open Source 
Code will hold a general assembly on Thursday, 17 February, 2011 in the 
Shenkar College in Ramat Gan. The assembly will be held at 18:30 in room 304 
(in the old building of Shenkar).

On the agenda:

1. Approving the verbal report for the year 2007 (complement for the proper 
administration of the NPO.)

2. Approving the financial and verbal reports for 2010.

3. Elections for the Board and the Comptrollers' Committee.

4. Approving the authorised signers in the NPO (as a continuation of the of 
the board elections results .).



One can propose further items for the agenda until a week before the meeting 
by sending an E-mail to the board ( bo...@hamakor.org.il ). Hamakor members 
that are interested in proposing themselves for the board and/or the 
comptrollers committee are requested to announce their intention to the 
discussion list ( 
http://www.iglu.org.il/mailing-lists/hamakor-discussions.html ). 

Hope to see you there.

Regards,

Shlomi Fish

-- 
-
Shlomi Fish   http://www.shlomifish.org/
Freecell Solver - http://fc-solve.berlios.de/

Chuck Norris can make the statement This statement is false a true one.

Please reply to list if it's a mailing list post - http://shlom.in/reply .

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

-
-- 
-
Shlomi Fish   http://www.shlomifish.org/
My Public Domain Photos - http://www.flickr.com/photos/shlomif/

Chuck Norris can make the statement This statement is false a true one.

Please reply to list if it's a mailing list post - http://shlom.in/reply .

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


Re: [Haifux] Getting mouse buttons to work

2011-02-15 Thread Shahar Dag

Hi dotan

This is from Ubunto, so it may not work for you

try xinput list to see if you get any useful data
(use xinput list | grep 'id=' to find mice id)

if you can get data, then you can use xinput set-button-map to try and set 
buttons


Shahar
- Original Message - 
From: Dotan Cohen dotanco...@gmail.com

To: linux-il. linux-il@cs.huji.ac.il; haifux. hai...@haifux.org
Sent: Tuesday, February 15, 2011 10:44 AM
Subject: [Haifux] Getting mouse buttons to work



Hi all, first off I must confess that this is a crosspost. I posted a
similar question to the Debian list, then to the Fedora list, but it's
not getting very far and I know that there are some smart folks here
who could probably help.

I have a nice new Teac OX-1100 mouse with two extra multimedia buttons
that supposedly perform the Zoom functions in Windows. When I try to
get the scancodes with xev, xbindkeys -k, showkey, or showkey
-s then I see no output. There are some other functional keys on this
mouse which also show no output with those tools, such as the side
scroll feature, so I suspect that there must be _some_ way to get the
codes.

Other than Xev, Xbindkeys, and Showkey, what tools can I use? I
specifically bought this mouse because of the location of the two
extra keys, as I have a manual disability and cannot use the special
keys of regular mice.

This is the rodent:
✈ganymede:~$ grep -i mouse /var/log/Xorg.0.log
[15.197] (==) RADEON(0): Silken mouse enabled
[15.289] (II) Microsoft Natural® Ergonomic Keyboard 4000: Found 1
mouse buttons
[15.289] (II) Microsoft Natural® Ergonomic Keyboard 4000:
Configuring as mouse
[15.292] (II) config/udev: Adding input device MLK OX-1100
wireless Laser Mouse (/dev/input/event2)
[15.292] (**) MLK OX-1100 wireless Laser Mouse: Applying
InputClass evdev pointer catchall
[15.292] (**) MLK OX-1100 wireless Laser Mouse: Applying
InputClass evdev keyboard catchall
[15.292] (**) MLK OX-1100 wireless Laser Mouse: always reports core 
events
[15.292] (**) MLK OX-1100 wireless Laser Mouse: Device: 
/dev/input/event2

[15.300] (II) MLK OX-1100 wireless Laser Mouse: Found 9 mouse buttons
[15.300] (II) MLK OX-1100 wireless Laser Mouse: Found scroll wheel(s)
[15.300] (II) MLK OX-1100 wireless Laser Mouse: Found relative axes
[15.300] (II) MLK OX-1100 wireless Laser Mouse: Found x and y relative 
axes

[15.300] (II) MLK OX-1100 wireless Laser Mouse: Found absolute axes
[15.300] (II) MLK OX-1100 wireless Laser Mouse: Found keys
[15.300] (II) MLK OX-1100 wireless Laser Mouse: Configuring as mouse
[15.300] (II) MLK OX-1100 wireless Laser Mouse: Configuring as 
keyboard

[15.300] (**) MLK OX-1100 wireless Laser Mouse: YAxisMapping:
buttons 4 and 5
[15.300] (**) MLK OX-1100 wireless Laser Mouse:
EmulateWheelButton: 4, EmulateWheelInertia: 10, EmulateWheelTimeout:
200
[15.300] (II) XINPUT: Adding extended input device MLK OX-1100
wireless Laser Mouse (type: KEYBOARD)
[15.301] (II) MLK OX-1100 wireless Laser Mouse: initialized for
relative axes.
[15.301] (WW) MLK OX-1100 wireless Laser Mouse: ignoring absolute 
axes.

[15.301] (II) config/udev: Adding input device MLK OX-1100
wireless Laser Mouse (/dev/input/mouse0)


However, 10 of the 12 buttons work, not just the 9 that it found. I've
tried to google a picture of the mouse, I see no info on Teac mice
even on the Teac website. The buttons are zoom buttons that I
suppose are activated by a Windows driver on the OS that the package
states that it supports.

Thanks in advance for any advice on how to continue!

--
Dotan Cohen

http://gibberish.co.il
http://what-is-what.com
___
Haifux mailing list
hai...@haifux.org
http://hamakor.org.il/cgi-bin/mailman/listinfo/haifux




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


Re: [Haifux] Getting mouse buttons to work

2011-02-15 Thread Dotan Cohen
On Tue, Feb 15, 2011 at 16:19, Leon Romanovsky l...@leon.nu wrote:
 On Tue, Feb 15, 2011 at 16:10, Shahar Dag d...@cs.technion.ac.il wrote:

 Hi dotan

 This is from Ubunto, so it may not work for you

 try xinput list to see if you get any useful data
 (use xinput list | grep 'id=' to find mice id)

 if you can get data, then you can use xinput set-button-map to try and set 
 buttons

 Shahar


Thanks, Shahar. For some reason I did not get your mail, I only see it
in the reply. Could you tell me to where it was addressed, I wonder
how much other mail I'm missing.

The mouse works, and does show up in xinput. Only the two Zoom buttons
do not work. I've tried remapping the buttons but nothing got any
output from those Zoom buttons.


 Hi Dotan,
 What is your X.org version ?


✈ganymede:~$ aptitude show xorg
Package: xorg
State: installed
Automatically installed: no
Version: 1:7.5+6ubuntu3

I also tried on a Debian Squeeze partition, I'm not sure what version
x.org was there but according to distrowatch it should have been
1.7.7.

-- 
Dotan Cohen

http://gibberish.co.il
http://what-is-what.com

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


Re: wiping files

2011-02-15 Thread Michael Tewner
2011/2/9 shimi linux...@shimi.net


 On Wed, Feb 9, 2011 at 9:50 PM, Uri Even-Chen u...@speedy.net wrote:

 Thank you.

 Wiping files is part of pretty good privacy (PGP) - if you want
 privacy you need to wipe your deleted files.



 I would trust having them all at encrypted-state at all times (and avoiding 
 using swap) to be a must better approach.

 I couldn't care less if someone takes my random data which he has no key for, 
 and read it for fun... I suspect this is not too different than reading 
 /dev/random.

 -- Shimi


That's the concept for ZFS secure deletion. As per
http://www.c0t0d0s0.org/archives/5793-Secure-Deletion-with-ZFS.html :
snip
 Use encryption and when you want to delete the data throw away the
matching key.
snip
And this is exactly the way, secure deletion will be done with ZFS.
It´s done by encryption. You will be able to define an encryption key
by dataset and when you want to delete a dataset securely just throw a
way the key. Remember that creating a dataset is as easy as creating a
directory in ZFS. ZFS Crypto will be the solution for the secure
delete challenge.



 ___
 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: wiping files

2011-02-15 Thread Uri Even-Chen
On Tue, Feb 15, 2011 at 21:30, Michael Tewner tew...@gmail.com wrote:
 2011/2/9 shimi linux...@shimi.net


 On Wed, Feb 9, 2011 at 9:50 PM, Uri Even-Chen u...@speedy.net wrote:

 Thank you.

 Wiping files is part of pretty good privacy (PGP) - if you want
 privacy you need to wipe your deleted files.



 I would trust having them all at encrypted-state at all times (and avoiding 
 using swap) to be a must better approach.

 I couldn't care less if someone takes my random data which he has no key 
 for, and read it for fun... I suspect this is not too different than reading 
 /dev/random.

 -- Shimi


 That's the concept for ZFS secure deletion. As per
 http://www.c0t0d0s0.org/archives/5793-Secure-Deletion-with-ZFS.html :
 snip
  Use encryption and when you want to delete the data throw away the
 matching key.
 snip
 And this is exactly the way, secure deletion will be done with ZFS.
 It´s done by encryption. You will be able to define an encryption key
 by dataset and when you want to delete a dataset securely just throw a
 way the key. Remember that creating a dataset is as easy as creating a
 directory in ZFS. ZFS Crypto will be the solution for the secure
 delete challenge.

Secure deletion is different than encryption! Remember that no
encryption is 100% safe. With encryption it's still possible to read
your data, if somebody finds your key; it's possible that in the
future they will be able to decrypt those encryptions; and you might
even give the key. With secure deletion it's not possible. Once you
delete files they are gone! If somebody is able to read them then it's
not secure deletion. And if you have a file you want to encrypt, you
should securely delete the original file after encryption, otherwise
you didn't do anything. If you just encrypt the file and delete the
original file (not securely), then it's still on your hard disk!
Secure deletion is very important.

Uri Even-Chen
Mobile Phone: +972-50-9007559
E-mail: u...@speedy.net
Website: http://www.speedy.net/

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