question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

V4 config fails on Thinkpad X390

See original GitHub issue

Ouput of linux-enable-ir-emitter -v -d /dev/videoX configure

configure command output
[~]$ sudo linux-enable-ir-emitter -v -d /dev/video2 configure
INFO: Ensure to not use the camera during the execution.
INFO: Warning to do not kill the process !
Is the ir emitter flashing (not just turn on) ? Yes/No ? n
DEBUG: unit: 9, selector: 10, cur control: 0 8 0 187 187 187 187 187, first control to test: 0 0 0 0 0 0 0 0, res control: 1 0
0 0 0 0 0 0, max control: 255 255 255 255 255 255 255 255
DEBUG: Negative answer limit exceeded, skipping the pattern.
ERROR: Impossible to reset the control.
INFO: Please keep this debug in case of issue :
DEBUG: unit: 9, selector: 10, control: 0 8 0 187 187 187 187 187
DEBUG: unit: 10, selector: 2, cur control: 1 0 0 0 0 0 0 16 39 0 0 0 0 0 0, first control to test: 0 0 0 0 0 0 0 16 39 0 0 0 0
0 0, res control: 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0, max control: 7 0 0 0 0 0 0 200 20 5 0 0 0 0 0
Is the ir emitter flashing (not just turn on) ? Yes/No ? n
Is the ir emitter flashing (not just turn on) ? Yes/No ? n
DEBUG: Computing the resolution control.
DEBUG: unit: 10, selector: 6, cur control: 1 3 1 0 0 0 0 0 0, first control to test: 1 3 2 0 0 0 0 0 0, res control: 0 0 1 0 0
0 0 0 0, max control: 1 3 3 0 0 0 0 0 0
Is the ir emitter flashing (not just turn on) ? Yes/No ? n
Is the ir emitter flashing (not just turn on) ? Yes/No ? n
DEBUG: unit: 10, selector: 9, cur control: 0 0 0 0, first control to test: 1 0 0 0, res control: 1 0 0 0, max control: 1 0 0 0
Is the ir emitter flashing (not just turn on) ? Yes/No ? n
DEBUG: unit: 14, selector: 14, cur control: 0 0, first control to test: 1 10, res control: 1 10, max control: 2 100
Is the ir emitter flashing (not just turn on) ? Yes/No ? n
Is the ir emitter flashing (not just turn on) ? Yes/No ? n
Is the ir emitter flashing (not just turn on) ? Yes/No ? n
DEBUG: unit: 14, selector: 16, cur control: 0, first control to test: 1, res control: 1, max control: 1
Is the ir emitter flashing (not just turn on) ? Yes/No ? n
ERROR: The configuration has failed.
INFO: Do not hesitate to visit the GitHub ! https://github.com/EmixamPP/linux-enable-ir-emitter/wiki

Output of v4l2-ctl --list-devices

[~]$ v4l2-ctl --list-devices
Integrated Camera: Integrated C (usb-0000:00:14.0-8):
        /dev/video0
        /dev/video1
        /dev/video2
        /dev/video3
        /dev/media0
        /dev/media1

Ouput of v4l2-ctl -d /dev/videoX --list-formats-ext

v4l2 device output
[~]$ v4l2-ctl -d /dev/video2 --list-formats-ext
ioctl: VIDIOC_ENUM_FMT
        Type: Video Capture

        [0]: 'GREY' (8-bit Greyscale)
                Size: Discrete 640x360
                        Interval: Discrete 0.067s (15.000 fps)
                        Interval: Discrete 0.033s (30.000 fps)

Additional info

  • Distro: Arch Linux
  • Version: latest
  • Version of linux-enable-ir-emitter: 4.1.2
  • How did you install linux-enable-ir-emitter: AUR
  • Device: Lenovo Thinkpad X390

Possibly related to Issue #71 Until V4 it was working without any issues but after updating to V4 the program broke. I have tried reinstalling it several times both from the AUR and directly from github and it fails the same way every time. Installing V3 from git creates a functioning configuration but upgradig to V4.1.2 and running the script to migrate the config breaks the program and subsequent attempts to reconfigure the program fails.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:15 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
Bakunin-sancommented, Aug 20, 2022

Sorry for not updating, had a very busy few weeks. I tried v4.1.4 and configuration is now working, thank you so much! 😃

1reaction
EmixamPPcommented, Jul 17, 2022

Ok, things become complicated to explains ^^ The problem is that I cannot find a fix if I don’t have precisely the state of the two mentioned files before and after update in a “regular” situation.

  1. Uninstall the v3 and v4 (no more files in /usr/lib/linux-enable-ir-emitter/ and /etc/linux-enable-ir-emitter/ and /etc/linux-enable-ir-emitter.yaml)
  2. Shut down your computer
  3. remove the AC adaptater
  4. boot, install the v3 and configure the emitter
  5. reboot, is everythings working ?
  6. install the v4
  7. past the content of /etc/linux-enable-ir-emitter/video2 and linux-enable-ir-emitter boot status

I won’t have time to try debugging today. So I think it’s better for you to go back to v3. And probably tomorrow I’ll install a VM with Arch to do some tests …

Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshooting Display or Monitor Issues - Lenovo Support US
Use the following steps to resolve display, screen, or monitor issues. Check Power; Check for Logo or BIOS screen; Check Cables; Check Display...
Read more >
Keyboard keys may not work - Lenovo Support US
Step Six - Try Keyboard Troubleshooting · Right-click the Windows icon. · Select Settings. Settings · Select Update & Security. · Select Troubleshoot....
Read more >
Function keys are not working - Lenovo Support US
Check any function key settings in the BIOS · Check Fn and Ctrl Key swap (Disabled) · Check Fn Sticky Key (Disabled) ·...
Read more >
0183-Bad-CRC-of-Security-Settings-in-EFI-variable
Re:0183: Bad CRC of Security Settings in EFI variable​​ I tried to activate my TPM on my X390 several times in BIOS, BIOS...
Read more >
Troubleshooting POST/startup does not complete issues
FRU/Action:​​ (The Power-On Status is disabled.) Run F1 Configuration/Setup, set the Start Options Power-On Status to enable. Check speaker connection.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found