Duckbox-Developers / driver

1 stars 10 forks source link

fp_control is broken on spark 7111 and 7162 (segfaults, Inappropriate ioctl for device) #2

Closed lprot closed 3 years ago

lprot commented 6 years ago
/tmp/fp_control: SW Version 1.04
Model: spark
vBoxType: 11
Selected Model: Edision Spark frontpanel control utility
Config file (/etc/vdstandby.cfg) not found,
using standard config:Config:
Display:0, DISPLAYCUSTOM = 0, CUSTOM = Unknown, WAKEUPDECREMENT 300
root@spark:~#

root@spark:~# /tmp/fp_control -tm
/tmp/fp_control: SW Version 1.04
Model: spark
vBoxType: 11
Selected Model: Edision Spark frontpanel control utility
Config file (/etc/vdstandby.cfg) not found,
using standard config:Config:
Display:0, DISPLAYCUSTOM = 0, CUSTOM = Unknown, WAKEUPDECREMENT 300
Segmentation fault
root@spark:~#

root@spark:~# /tmp/fp_control -l 0 1
/tmp/fp_control: SW Version 1.04
Model: spark
vBoxType: 11
Selected Model: Edision Spark frontpanel control utility
Config file (/etc/vdstandby.cfg) not found,
using standard config:Config:
Display:0, DISPLAYCUSTOM = 0, CUSTOM = Unknown, WAKEUPDECREMENT 300
Setled: Inappropriate ioctl for device
MastaG commented 5 years ago

Hi lprot, did you ever found a fix this?

lprot commented 5 years ago

Hi, no never.

BPanther commented 5 years ago

Do you use all of the DDT or a "mix" with other driver (maybe other aotom) etc.?

lprot commented 5 years ago

If you use old aotom from taapat's images then it is working. So the regression happened in new aotoms.

MastaG commented 5 years ago

Yes, but afaik his aotom didn't drive the vfd of my spark7162. Only duckbox's aotom_spark driver with skl's patch (in oe-alliance meta-fulan layer) works for me.

But I could never get fp-control working without complaining about ioctls..

Op za 23 feb. 2019 07:53 schreef lprot notifications@github.com:

If you use old aotom from taapat's images then it is working. So the regression happened in new aotoms.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/Duckbox-Developers/driver/issues/2#issuecomment-466623293, or mute the thread https://github.com/notifications/unsubscribe-auth/AOURE7-qIfO6f85eVYTib927oENfZaUiks5vQOVrgaJpZM4WM5AW .

BPanther commented 5 years ago

I have not this receiver, but an other user has test this. -tm requires a parameter, without -> segfault. That's right but not really a problem.

An then the second problem with "Inappropriate ioctl for device".

spark7162:~# fp_control -l 0 1 fp_control: SW Version 1.04 Model: spark7162 vBoxType: 11 Selected Model: Edision Spark frontpanel control utility configs: DISPLAY = 1, DISPLAYCUSTOM = 1, CUSTOM = %H:%M:%S , WAKEUPDECREMENT 300

spark7162:~# fp_control -l 1 1 fp_control: SW Version 1.04 Model: spark7162 vBoxType: 11 Selected Model: Edision Spark frontpanel control utility configs: DISPLAY = 1, DISPLAYCUSTOM = 1, CUSTOM = %H:%M:%S , WAKEUPDECREMENT 300

No problem with the DDT GIT:

BTW: Where is the file /etc/vdstandby.cfg ? Maybe also a problem for unknown errors. Seems to be not the DDT GIT build.

lprot commented 3 years ago

Why to close it if it was not fixed?

Frankenstone commented 3 years ago

You must use with Args 0 or 1 No Probelm with DDT Git

fp_control -tm 0 fp_control: SW Version 1.04 Model: spark7162 vBoxType: 7 Selected Model: Edision Spark frontpanel control utility configs: DISPLAY = 1, DISPLAYCUSTOM = 1, CUSTOM = %H:%M:%S
, WAKEUPDECREMENT 300 spark7162-1:~#

fp_control -tm 1 fp_control: SW Version 1.04 Model: spark7162 vBoxType: 7 Selected Model: Edision Spark frontpanel control utility configs: DISPLAY = 1, DISPLAYCUSTOM = 1, CUSTOM = %H:%M:%S
, WAKEUPDECREMENT 300 spark7162-1:~#

-tm --time_mode Args: 0/1 toggle 12/24 hour mode

BPanther commented 3 years ago

There is no fix needed, because it works with DDT build. And as I sayd here: https://github.com/Duckbox-Developers/driver/issues/2#issuecomment-466674672 from Feb 23, 2019: "Where is the file /etc/vdstandby.cfg ? Maybe also a problem for unknown errors. Seems to be not the DDT GIT build."