Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hibernate workaround breaks camera on wake up #31

Closed
zemen opened this issue Aug 1, 2023 · 6 comments
Closed

Hibernate workaround breaks camera on wake up #31

zemen opened this issue Aug 1, 2023 · 6 comments

Comments

@zemen
Copy link

zemen commented Aug 1, 2023

I tried to install the driver with ./install.sh -as on Thinkpad carbon X1 gen 10. The workaround indeed helps to wake up without freeze after hibernation, then driver loads and there are no errors in journal. However neither gstreamer nor v4l2-relayd doesn't work until next reboot.

Another issue I found is that suspend(which is triggered on my laptop on lid close) is not supported in workaround.

@alvinpeters
Copy link
Contributor

that's odd. that worked fine for me. prolly because Intel pushed some new stuff. checking this morning.

@alvinpeters
Copy link
Contributor

alvinpeters commented Aug 12, 2023

seeing that intel has pushed the newer branches into main that has the i2c_ljca fix. I am kinda optimistic that the hibernation hack is no longer needed. Doing some testing then making a PR. Give me around 5 hours lol

Also, if you mean that you can't wake up from just suspend. I don't know what broke it since it always works on s2idle suspend at least.

Edit: They haven't fixed hibernation :(

@alvinpeters
Copy link
Contributor

@zemen can you give me the output of cat /sys/power/mem_sleep? My XPS 13 Plus is suspending as [s2idle] and can't use any other options so wondering what you have.

Also, the camera is working fine after a hibernation for me without modifications to the script. I doubt this will work but can you remove the post stage from the hibernation script? The workaround should look like this:

stage=$1
op=$2

case $stage in
  pre)
    case $op in
      hibernate|hybrid-sleep)
        /usr/bin/modprobe -r i2c_ljca
        ;;
      suspend-then-hibernate)
        [ "$SYSTEMD_SLEEP_ACTION" = "hibernate" ] && /usr/bin/modprobe -r i2c_ljca
        ;;
    esac
    ;;
esac

@alvinpeters
Copy link
Contributor

Wait, I just reread the original issue on ivsc-driver again. It might turn out that you are having the literally same issue as this intel/ivsc-driver#32 (comment) . Go check it out and see if the logs match or something @zemen

@alba4k
Copy link
Contributor

alba4k commented Nov 19, 2023

Works perfectly for me. After waking up, the camera doesn't work for a couple of seconds (which is expected as the modules are still being loaded by the workaround). Then the led flashes for about half a second and the camera starts working again.

@stefanpartheym
Copy link
Owner

I'll close this one now du to inactivity and it seems to work for other people.
@zemen Please consider reopening, if necessary.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants