New to forum and problem with udev, hal_input and

More
01 Oct 2011 06:16 #13571 by rolf77
Hi all!

I am Rolf from Germany and just joined this forum.

Today i switched from Ubuntu 8.04 to 10.04.
Generally it works, but my jogwheel don't.

It is an jogwheel with AVR and HIDKeys, working fine under 8.04.
But now, under 10.04 i get "No input devices could be opened. This usually indicates a misconfigured system..."

Then i tried to call from a shell with

halrun
loadusr -W hal_input -KRAL SAITEK
show pin

No luck as normal user, same error.

But, when i am root, the shell command above works, and i see the pins.
So i logged in to ubuntu as root. Axis starts without errors annd my jogwheel works!
So i think, the error must have do do with permissons.
But it's wrong to work permanently as root, isnt it?

In the /etc/udev/rules.d i have a file with SUBSYSTEM="input", mode="0660", group="plugdev"
And the normal user belongs to the group plugdev.

What may be my mistake? Where to look for errors or wrong configuration?


Best regards from Germany!

Rolf

BTW: I tried to join to This email address is being protected from spambots. You need JavaScript enabled to view it..
I got a "Welcome to the "Emc-users" mailing list (Digest mode)" mail, i get daily mail.
But when i post to the list, i don't see any message from myself.
I think, i am still not enabeld to post by the admin. But when i write to
'This email address is being protected from spambots. You need JavaScript enabled to view it.', no answer.

Perhaps someone ha an tip, what do do?

Please Log in or Create an account to join the conversation.

More
01 Oct 2011 06:44 #13576 by cmorley
In my rules.d they are owned by root.
What version of EMC are you using?

Please Log in or Create an account to join the conversation.

More
01 Oct 2011 07:03 #13577 by cmorley
if you are using EMC newer then 2.4.3 then you could use pncconf to help you make a rule.
on the 'External Controls page' there is an option USB joystick. It will help you write a rule and test it.
You will need your joystick handy.
after that just quit PNCconf. The rule will be written on you system.

Please Log in or Create an account to join the conversation.

More
01 Oct 2011 11:16 #13578 by rolf77
Hi,

cmorley wrote:

if you are using EMC newer then 2.4.3 then you could use pncconf to help you make a rule.
on the 'External Controls page' there is an option USB joystick. It will help you write a rule and test it.
You will need your joystick handy.
after that just quit PNCconf. The rule will be written on you system.


thanks for your quick answer. I made an fresh install, updated the system. With the new, fresh and clear system i tried pncconf.
2 rules where added do /etc/udev/rules.d, owned by root.

But when i try do test the device with pncconf:
requested devicename =  obdev.at HIDKeys
No input devices could be opened.  This usually indicates a misconfigured
system.  Please read the section 'PERMISSIONS AND UDEV' in the hal_input
manpage

Then i tried sudo pncconf. With that, i can test the device, show pins and so on.

What may be wrong? It is really an fresh install (10.04), i have only applied the updates.

Best regards, Rolf

Please Log in or Create an account to join the conversation.

More
01 Oct 2011 12:29 #13581 by BigJohnT
rolf77 wrote:

BTW: I tried to join to This email address is being protected from spambots. You need JavaScript enabled to view it..
I got a "Welcome to the "Emc-users" mailing list (Digest mode)" mail, i get daily mail.
But when i post to the list, i don't see any message from myself.
I think, i am still not enabeld to post by the admin. But when i write to
'This email address is being protected from spambots. You need JavaScript enabled to view it.', no answer.

Perhaps someone ha an tip, what do do?


I asked a list administrator to look into this. I never see (get mailed back to me) my posts to the list either only reply's to them.

John

Please Log in or Create an account to join the conversation.

More
01 Oct 2011 15:23 #13582 by rolf77
Hi,

i tested some things. My jogwheel acts as an HID device.
So i tested to set the permission under /dev/input with chmod 0666 *

And: IT WORKS!

So the only questionss are:

- which device is my wheel exactly? (I think, lsusb is my friend)
- how to change the permission for this device?

Maybe udev rules, i don't know. I am not a very good linux user.

Perhaps someone can show me the right way?

Best regards, Rolf

Please Log in or Create an account to join the conversation.

More
01 Oct 2011 15:24 #13583 by rolf77
Hi!

Many thanks for the time you spend with my probelm!

Regards from Germany!

Please Log in or Create an account to join the conversation.

More
01 Oct 2011 16:01 #13585 by rolf77
Hi all!

i solved the problem!!!

sourceforge.net/apps/mediawiki/gizmod/in...Creating_a_udev_Rule
The site obove helps me with it.

Greeting from Petershagen and much thanks for the efforts to help me!

Rolf

Please Log in or Create an account to join the conversation.

More
01 Oct 2011 17:47 #13587 by BigJohnT
I'm glad you got it working... this might have helped if I had remembered it.

wiki.linuxcnc.org/cgi-bin/emcinfo.pl?Simple_Remote_Pendant

John

Please Log in or Create an account to join the conversation.

Time to create page: 0.359 seconds
Powered by Kunena Forum