LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 01-11-2014, 08:53 PM   #1
2sassy
Member
 
Registered: Mar 2008
Location: Midwest USA
Posts: 59

Rep: Reputation: 0
Don't Understand: Instructions for Griffin PowerMate Mouse


Hi & Happy New Year.

I have a Griffin PowerMate mouse and I'd like to see if I could get it work via my "Linux Box", Linux Mint 13 (Maya). I found some how to instructions for PowerMate and Linux but don't understand what I'm suppose to do... to get the PowerMate to work.

Griffin Powermate on Linux | screamingroot.org


Thank you for any assistance of making sense on how I'm suppose to implement this data.
 
Old 01-12-2014, 04:11 AM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
The instructions you mention (Griffin Powermate on Linux) seem to be rather straightforward.

- What doesn't work?
- Any errors?
- ????

Please provide relevant information so we might be able to help you.
 
Old 01-12-2014, 07:45 AM   #3
2sassy
Member
 
Registered: Mar 2008
Location: Midwest USA
Posts: 59

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by druuna View Post
The instructions you mention (Griffin Powermate on Linux) seem to be rather straightforward.

- What doesn't work?
- Any errors?
- ????

Please provide relevant information so we might be able to help you.
I'm sorry, I should have been more specific in my lack of understanding of what the instructions wanted me to do. How do I implement them? Do I type this code,data, or program via the terminal? What and how does "evrouter" work in getting the powermate to work? I'm a Linux novice; I was lost when the instructions stated, "Create /etc/udev/rules.d/powermate.rules with the following content:" Thank you.

Last edited by 2sassy; 01-12-2014 at 08:38 AM. Reason: one more thing...
 
Old 01-12-2014, 08:54 AM   #4
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Quote:
Originally Posted by 2sassy View Post
I'm sorry I should have been more specific in my lack of understanding of what the instructions wanted me to do. How do I implement them? Do I type this code/data/program via the terminal? What and how does "evrouter" do to get the powermate to work? I'm a Linux novice. So, I was lost when the instructions stated, "Create /etc/udev/rules.d/powermate.rules with the following content:" Thank you.
The documentation does assume one has some experience with the CLI (terminal) and Linux. All the instructions are done from the command line (a terminal) and need root privileges (sudo works on Ubuntu based systems).

Maybe this will help (copy/paste code blocks to a terminal):

- Create and fill /etc/udev/rules.d/powermate.rules:
Code:
sudo cat > /etc/udev/rules.d/powermate.rules << "EOF"
SUBSYSTEM=="input", ATTRS{idVendor}=="077d", ATTRS{idProduct}=="0410", SYMLINK+="powermate", MODE="660", GROUP="video"
EOF

sudo chmod 644 /etc/udev/rules.d/powermate.rules
- Check if you are member of the video group:
Code:
sudo getent group video
If your user name is NOT present do the following:
Code:
sudo usermod -aG video your_user_name
- Restart udev:
Code:
sudo restart udev
- Download evrouter: Use browser to get package

- Install evrouter:
Code:
sudo dpkg -i /path/to/evrouter_0.4_amd64.deb
I'm assuming the amd64 version, change if you need the i386 version.


- Create /etc/evrouterrc:
Code:
sudo cat > /etc/evrouterrc << "EOF"
Window ""
"Griffin PowerMate" "" any key/256 "XButton/2"
"Griffin PowerMate" "" any rel/7/1 "XButton/5"
"Griffin PowerMate" "" any rel/7/-1 "XButton/4"
EOF

sudo chmod 644 /etc/evrouterrc
- Create /usr/local/bin/powermate:
Code:
sudo cat > /usr/local/bin/powermate << "EOF"
#!/bin/sh
evrouter -c /etc/evrouterrc /dev/powermate
EOF

sudo chmod 755 /usr/local/bin/powermate
- Setup your session to auto-run powermate on login: ??? Ubuntu specific, don't know.


Disclaimer: I'm not an Ubuntu user and do not have a Griffin PowerMate mouse. I am assuming that the commands in the article are correct.
 
Old 01-12-2014, 12:20 PM   #5
2sassy
Member
 
Registered: Mar 2008
Location: Midwest USA
Posts: 59

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by druuna View Post
The documentation does assume one has some experience with the CLI (terminal) and Linux. All the instructions are done from the command line (a terminal) and need root privileges (sudo works on Ubuntu based systems).

Maybe this will help (copy/paste code blocks to a terminal):

- Create and fill /etc/udev/rules.d/powermate.rules:
Code:
sudo cat > /etc/udev/rules.d/powermate.rules << "EOF"
SUBSYSTEM=="input", ATTRS{idVendor}=="077d", ATTRS{idProduct}=="0410", SYMLINK+="powermate", MODE="660", GROUP="video"
EOF

sudo chmod 644 /etc/udev/rules.d/powermate.rules
- Check if you are member of the video group:
Code:
sudo getent group video
If your user name is NOT present do the following:
Code:
sudo usermod -aG video your_user_name
- Restart udev:
Code:
sudo restart udev
- Download evrouter: Use browser to get package

- Install evrouter:
Code:
sudo dpkg -i /path/to/evrouter_0.4_amd64.deb
I'm assuming the amd64 version, change if you need the i386 version.


- Create /etc/evrouterrc:
Code:
sudo cat > /etc/evrouterrc << "EOF"
Window ""
"Griffin PowerMate" "" any key/256 "XButton/2"
"Griffin PowerMate" "" any rel/7/1 "XButton/5"
"Griffin PowerMate" "" any rel/7/-1 "XButton/4"
EOF

sudo chmod 644 /etc/evrouterrc
- Create /usr/local/bin/powermate:
Code:
sudo cat > /usr/local/bin/powermate << "EOF"
#!/bin/sh
evrouter -c /etc/evrouterrc /dev/powermate
EOF

sudo chmod 755 /usr/local/bin/powermate
- Setup your session to auto-run powermate on login: ??? Ubuntu specific, don't know.


Disclaimer: I'm not an Ubuntu user and do not have a Griffin PowerMate mouse. I am assuming that the commands in the article are correct.

Thanks for your assistance. I recieved this when I typed in the first block in the terminal...

studio1@studio1-GA-78LMT-USB3 ~ $ sudo cat > /etc/udev/rules.d/powermate.rules << "EOF"
> SUBSYSTEM=="input", ATTRS{idVendor}=="077d", ATTRS{idProduct}=="0410", SYMLINK+="powermate", MODE="660", GROUP="video"
> EOF
bash: /etc/udev/rules.d/powermate.rules: Permission denied
studio1@studio1-GA-78LMT-USB3 ~ $
studio1@studio1-GA-78LMT-USB3 ~ $ sudo chmod 644 /etc/udev/rules.d/powermate.rules
[sudo] password for studio1:
chmod: cannot access `/etc/udev/rules.d/powermate.rules': No such file or directory
studio1@studio1-GA-78LMT-USB3 ~ $

hmmm..

The only thing I came up with were another set of instructions, Using Griffin Powermate in Linux - http://www.mp3car.com/input-devices/...-in-linux.html
 
Old 01-12-2014, 12:35 PM   #6
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Quote:
Originally Posted by 2sassy
studio1@studio1-GA-78LMT-USB3 ~ $ sudo cat > /etc/udev/rules.d/powermate.rules << "EOF"
> SUBSYSTEM=="input", ATTRS{idVendor}=="077d", ATTRS{idProduct}=="0410", SYMLINK+="powermate", MODE="660", GROUP="video"
> EOF
bash: /etc/udev/rules.d/powermate.rules: Permission denied
I guess you do need full root access. Open a terminal and become root user:
Code:
sudo -i
Also see: How To Set Root Access While Using Linux Mint Terminal

Now repeat the commands in post #4 WITHOUT the sudo part. Example: sudo restart udev ---> restart udev

BTW: If you get an error there is no point in trying the commands that follow.
 
Old 01-12-2014, 01:14 PM   #7
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 4,137
Blog Entries: 1

Rep: Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874
The instructions are pretty straitforward. Although not if you don't know much or anything about linux and it's terminal. Basically you are going to create and/or edit two files and install some software. The other stuff is mostly optional if you reboot (m$ methodology).

Edit file:
/etc/udev/rules.d/powermate.rules
(as root)

Edit file:
/etc/evrouterrc
(as root)
(optionally as user in ~/.evrouterrc)

And insert the stuff from that link.

Install software:
http://www.bedroomlan.org/projects/evrouter

There appears to be some downloadable .deb files. For debian based systems(like ubuntu):
$ sudo dpkg -i <file>.deb

And then run an application:
$ evrouter -c /etc/evrouterrc /dev/powermate

It's a little unclear if that should run as root or as user. Assume as user initially. And it hints at making it run automagically, but doesn't go into how to do that.
 
Old 01-12-2014, 01:19 PM   #8
2sassy
Member
 
Registered: Mar 2008
Location: Midwest USA
Posts: 59

Original Poster
Rep: Reputation: 0
This is was I got back after post command in post #4.

studio1-GA-78LMT-USB3 ~ # restart udev
udev start/running, process 9365
studio1-GA-78LMT-USB3 ~ # sudo dpkg -i /path/to/evrouter_0.4_amd64.deb
dpkg: error processing /path/to/evrouter_0.4_amd64.deb (--install):
cannot access archive: No such file or directory
Errors were encountered while processing:
/path/to/evrouter_0.4_amd64.deb
 
Old 01-12-2014, 01:27 PM   #9
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Quote:
Originally Posted by 2sassy View Post
This is was I got back after post command in post #4.

studio1-GA-78LMT-USB3 ~ # restart udev
udev start/running, process 9365
studio1-GA-78LMT-USB3 ~ # sudo dpkg -i /path/to/evrouter_0.4_amd64.deb
dpkg: error processing /path/to/evrouter_0.4_amd64.deb (--install):
cannot access archive: No such file or directory
Errors were encountered while processing:
/path/to/evrouter_0.4_amd64.deb
First of all I told you to remove the sudo part from all the commands.

You need to substitute the red part with the actual location you downloaded the file to. Probably: /home/your_username_goes_here/Downloads, but only you know where you put the file.

Redo this step and assuming it works continue where you left of (Create /etc/evrouterrc:)

Last edited by druuna; 01-12-2014 at 01:29 PM.
 
Old 01-12-2014, 04:25 PM   #10
2sassy
Member
 
Registered: Mar 2008
Location: Midwest USA
Posts: 59

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by druuna View Post
First of all I told you to remove the sudo part from all the commands.

You need to substitute the red part with the actual location you downloaded the file to. Probably: /home/your_username_goes_here/Downloads, but only you know where you put the file.

Redo this step and assuming it works continue where you left of (Create /etc/evrouterrc:)
Patience druuna... patience.

I thought you meant for me to exlude sudo for only post #4. But anywho...
Question: Are there certain rules for if and when you run sudo... is it exclude if your the "root user", for example?

I ran everything in the terminal, no error message, but the Powermate didn't work. I got stuck at, "Setup your session to auto-run powermate on login", I'm going to assume this is my problem. I'll try and figure it out at this point, you've been very helpful. Thank you and Shadow_7 for showing me and teaching me something I don't think I would have figured out on my own. I'm not completley unfamiliar with using the terminal but still very much a rookie in understanding how to use commands and how they should run. Linux Mint For Beginners, has some chapters on the command line and how to install apps/software, I think I better read it carefully. :smile: I will be back afer I figured out how to ge the PowerMate to work.

Last edited by 2sassy; 01-12-2014 at 05:19 PM. Reason: one more thing.....
 
Old 01-12-2014, 10:05 PM   #11
2sassy
Member
 
Registered: Mar 2008
Location: Midwest USA
Posts: 59

Original Poster
Rep: Reputation: 0
Ok, I got the PowerMate working in a limited fashion.

The Powermate will scroll up and down when I turn the nob, but I should be able to press the botton left / rides sides to open and close files and programs. It should move (via the curser) when I move around on my computer table. What was driving my crazy was the "autorun" thing. Ducked searched and came upon this... http://http://dottech.org/118513/how...-ubuntu-guide/

The auto-run command for Ubuntu is this... sudo ln -s /usr/bin/"ProgramName" ~/.config/autostart

I think I can get it to be fully functional, I'll be back.
 
Old 01-13-2014, 02:50 AM   #12
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Quote:
Originally Posted by 2sassy View Post
Question: Are there certain rules for if and when you run sudo... is it exclude if your the "root user", for example?
The sudo command lets you execute commands as a different user. It is most often used to execute commands, as a normal user, that need root privileges.

How and when to use it depends on how sudo is set up:
- In post #4 I used sudo in front of every command and it turned out that certain commands still showed permission denied. This told me that Mint did not set up sudo to allow all commands.

- In post #6 I used sudo -i to become root user (as explained by the included link). Once you are root there is no need any more to use sudo (you are root user already).

Quote:
I got stuck at, "Setup your session to auto-run powermate on login", I'm going to assume this is my problem.
Maybe this link will help: How to start a program automatically in Linux desktop (The link in your other post doesn't seem to work).
 
Old 01-14-2014, 02:24 PM   #13
2sassy
Member
 
Registered: Mar 2008
Location: Midwest USA
Posts: 59

Original Poster
Rep: Reputation: 0
Thank you druuna for the links and explanations. As I mentioned, I got my Griffin PowerMate ot scroll up and down on a webpage, control the volume of my Audacious music player and open a page to another window. That is if I use another curse and place it on the tab and/or link or on the tab/ music player.. As I review the instructions (in the links I provided in my post above) both authors had specific and limited commands on what they wanted their PowerMate to do. PowerMate is supposed to be programmable to meet your needs. If I want to be able to left and right click, I'll have to figure out that code myself. I have much to learn before, I can even go there.

I'll mark this as solved and I'll post the extras steps I did to get the PowerMate to work. There's was neither rhymme nor reason on what I did, I just guessed. These are my notes and I can't recall which one worked, notes, A & B. I could find the Powermate folder to save my life, but check my files, they have to be their. I know... :smile:


After copying the last code in druuna post. This is what I did.

- Create /usr/local/bin/powermate: Notes:Part A

studio1-GA-78LMT-USB3 ~ # sudo cat > /usr/local/bin/powermate << "EOF"
> #!/bin/sh
> evrouter -c /etc/evrouterrc /dev/powermate
> EOF
studio1-GA-78LMT-USB3 ~ #
studio1-GA-78LMT-USB3 ~ # sudo chmod 755 /usr/local/bin/powermate
studio1-GA-78LMT-USB3 ~ # sudo ln -s /usr/bin/powermate ~/.config/autostart
ln: failed to create symbolic link `/root/.config/autostart': File exists
studio1-GA-78LMT-USB3 ~ # evrouter -c /etc/evrouterrc /dev/powermate
device 0: /dev/powermate: Griffin PowerMate
Display name: :0
Parsed 3 rules, 216 bytes
studio1-GA-78LMT-USB3 ~ # EOF
EOF: command not found
studio1-GA-78LMT-USB3 ~ #



Notes: Part B

Create /usr/local/bin/powermate:

studio1-GA-78LMT-USB3 ~ # sudo cat > /usr/local/bin/powermate << "EOF"
> #!/bin/sh
> evrouter -c /etc/evrouterrc /dev/powermate
> EOF
studio1-GA-78LMT-USB3 ~ # Code:
sudo cat > /usr/local/bin/powermate << "EOF"
#!/bin/sh
evrouter -c /etc/evrouterrc /dev/powermate
EOF

sudo chmod 755 /usr/local/bin/powermate

studio1-GA-78LMT-USB3 ~ # sudo chmod 755 /usr/local/bin/powermate
studio1-GA-78LMT-USB3 ~ # sudo ln -s /urs/bin/powermate ~/.config/autostart
ln: failed to create symbolic link `/root/.config/autostart': File exists
studio1-GA-78LMT-USB3 ~ # !/bin/sh
-bash: !/bin/sh: event not found
studio1-GA-78LMT-USB3 ~ # evrouter -c /etc/evrouterrc /dev/powermate
device 0: /dev/powermate: Griffin PowerMate
Display name: :0
Parsed 3 rules, 216 bytes
studio1-GA-78LMT-USB3 ~ # sudo ln -s /usr/bin/powermate ~/.config/autostart
ln: failed to create symbolic link `/root/.config/autostart': File exists
studio1-GA-78LMT-USB3 ~ #

Last edited by 2sassy; 01-14-2014 at 02:29 PM.
 
  


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
Newbie trying to understand command instructions. jdgriff80 Linux - Newbie 13 12-03-2011 07:02 PM
Audio issue, Don't quite get the Via instructions beatupbilly Linux - Hardware 1 07-17-2007 02:52 AM
Griffin Powermate in Edgy Eft jmcts Linux - Hardware 0 02-07-2007 12:54 PM
i don't understand the isnstallation instructions mista_chewey Linux - Newbie 4 02-27-2005 02:25 PM
Can't understand DWL-650+ README instructions Linux4Dummies Linux - Networking 3 08-22-2004 05:15 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 06:05 AM.

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