Force Feedback support

User avatar
50keda
SCS Software
Posts: 2708
Joined: 07 Dec 2012 11:59

Re: Force Feedback support

#51 Post by 50keda » 03 Oct 2017 09:40

@Asfhy: check your PM ;)

User avatar
Unco
Posts: 2560
Joined: 02 Jan 2013 21:13
Location: Denmark

Re: Force Feedback support

#52 Post by Unco » 08 Oct 2017 17:55

@50keda: I don't think he can. Not before a total post count of 5.

moozaad
Posts: 10
Joined: 11 Dec 2017 11:16

Re: Force Feedback support

#53 Post by moozaad » 11 Dec 2017 11:17

I'd be very interested in testing this. G29 owner. Thanks!

srothe
Posts: 3
Joined: 13 Dec 2017 11:31

Re: Force Feedback support

#54 Post by srothe » 13 Dec 2017 11:34

Hi, G29 user here.

would you mind me testing your plugin? I am running ETS2 Steam edition on Ubuntu 14.04 with kernel updated to 4.4.x

Double post merged.


Same here. Running ETS2 Steam edition and G29 on Ubuntu 14.04 with kernel updated to V4.4.X
I'd love to test your plugin, @50keda

moozaad
Posts: 10
Joined: 11 Dec 2017 11:16

Re: Force Feedback support

#55 Post by moozaad » 14 Dec 2017 22:00

Works well from my initial testing. Needs a few config tweaks for the G29 deadzone (removal), and to make it feel like power steering. The LEDs don't work but other than that, very happy!

Any chance of putting it on github so I can see if I can get those LEDs working?

User avatar
50keda
SCS Software
Posts: 2708
Joined: 07 Dec 2012 11:59

Re: Force Feedback support

#56 Post by 50keda » 15 Dec 2017 08:41

Well as I am not the author of the mod I must respect Supric policy. He didn't share code publicly so can't I. Well if you have any tips or links on how to make LEDs working in linux, then just share it with me, I will try to incorporate it in the plugin.

moozaad
Posts: 10
Joined: 11 Dec 2017 11:16

Re: Force Feedback support

#57 Post by moozaad » 15 Dec 2017 09:49

Supric say no to source sharing then? shame.

As for LEDs, I presume you're hitting the kernel/USB-HID directly so it's

static void lg4ff_set_leds(struct hid_device *hid, u8 leds)
https://github.com/torvalds/linux/blob/ ... ff.c#L1088

moozaad
Posts: 10
Joined: 11 Dec 2017 11:16

Re: Force Feedback support

#58 Post by moozaad » 15 Dec 2017 10:32

Just playing with the LEDs a little via /sys. And it looks likes there's 5 LEDS to assign and the on/off is mirrored, eg. LED1 is the first green LED on both sides.

example code where I turn on all the LEDS to test functionality

Code: Select all

mudkip:/sys/bus/hid/devices/0003:046D:C24F.000D/leds # echo 1 > 0003\:046D\:C24F.000D\:\:RPM1/brightness 
mudkip:/sys/bus/hid/devices/0003:046D:C24F.000D/leds # echo 1 > 0003\:046D\:C24F.000D\:\:RPM2/brightness 
mudkip:/sys/bus/hid/devices/0003:046D:C24F.000D/leds # echo 1 > 0003\:046D\:C24F.000D\:\:RPM3/brightness 
mudkip:/sys/bus/hid/devices/0003:046D:C24F.000D/leds # echo 1 > 0003\:046D\:C24F.000D\:\:RPM4/brightness 
mudkip:/sys/bus/hid/devices/0003:046D:C24F.000D/leds # echo 1 > 0003\:046D\:C24F.000D\:\:RPM5/brightness
I got the sys hid ID from dmesg

[ +0.012146] input: Logitech G29 Driving Force Racing Wheel as /devices/pci0000:00/0000:00:01.3/0000:03:00.2/0000:1d:04.0/0000:25:00.0/usb3/3-2/3-2:1.0/0003:046D:C24F.000D/input/input26

They don't however need to be lit in order or anything so you could just have LED3 on (first orange), or flash LED1 with your indicators etc. Or for fuel, you start with full lit and then turn of LED1 first and increment up to you're only left with red (and then flash it?).
Lastly, it looks like it's binary 0/1 for brightness as I couldn't pass in half brightness via the shell.

srothe
Posts: 3
Joined: 13 Dec 2017 11:31

Re: Force Feedback support

#59 Post by srothe » 15 Dec 2017 12:56

Thank you, @50keda, for sending the plugin. Will be tested over the weekend and early next week.

And thank you, admin, for merging my doeble post. I did not notice that the first one had to be approved, so I thought it got lost and repeated it.

alexxxx
Posts: 11
Joined: 29 Aug 2017 14:52

Re: Force Feedback support

#60 Post by alexxxx » 15 Dec 2017 16:33

@moozaad What changes did you make to remove G29 deadzone?

Have there been any changes from 2.5? Also I got American Truck lately, I would assume it also works with that?

Post Reply

Return to “Linux Beta Testing”

Who is online

Users browsing this forum: No registered users and 2 guests