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

Nobara on Ally #8

Open
parkerlreed opened this issue Aug 10, 2023 · 12 comments
Open

Nobara on Ally #8

parkerlreed opened this issue Aug 10, 2023 · 12 comments

Comments

@parkerlreed
Copy link

Service seems to be hit or miss if it applies.

One possible cause I've seen is that setting the client to Beta will often forget that it's Beta and start redownloading updates every couple or so boots.

I'm assuming it's doing the "update" whenever steam-patcher tries to run and thus can't find the files it needs.

Maybe some detection for if Steam is in the middle of an update?

× steam-patch.service - Steam Patches Loader
     Loaded: loaded (/etc/systemd/system/steam-patch.service; enabled; preset: disabled)
    Drop-In: /usr/lib/systemd/system/service.d
             └─10-timeout-abort.conf
     Active: failed (Result: core-dump) since Thu 2023-08-10 17:52:50 EDT; 6min ago
   Duration: 15min 52.843s
   Main PID: 1223 (code=dumped, signal=ABRT)
        CPU: 651ms

Aug 10 17:51:59 nobara-pc steam-patch[1223]: Show QAM
Aug 10 17:51:59 nobara-pc steam-patch[1223]: Show Menu
Aug 10 17:51:59 nobara-pc steam-patch[1223]: Show QAM
Aug 10 17:52:10 nobara-pc steam-patch[1223]: Steam unpatched
Aug 10 17:52:12 nobara-pc steam-patch[1223]: Steam patched
Aug 10 17:52:49 nobara-pc steam-patch[1223]: Steam unpatched
Aug 10 17:52:50 nobara-pc steam-patch[1223]: thread 'tokio-runtime-worker' panicked at 'called `Result::unwrap()` on an `Err` value: Os { code: 2, kind: NotFound, message: "No such file or directory" }', src/steam.rs:198:78
Aug 10 17:52:50 nobara-pc steam-patch[1223]: note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Aug 10 17:52:50 nobara-pc systemd[1]: steam-patch.service: Main process exited, code=dumped, status=6/ABRT
Aug 10 17:52:50 nobara-pc systemd[1]: steam-patch.service: Failed with result 'core-dump'.
@Maclay74
Copy link
Owner

Maclay74 commented Aug 11, 2023

Oh, I'm afraid I can't test the tool on Nobara - I don't have it installed.

But message: "No such file or directory" seems to be related to the attempt to patch file (there is an unwrap for get_file)

Can you make sure that Steam client is always in "/home/<username>/.local/share/Steam" ?

@parkerlreed
Copy link
Author

parkerlreed commented Aug 11, 2023

That was my thought. Upon extraction it's temporarily not available and steam-patch hits at the wrong time.

Although that seems to be a one off with steam beta. I've been on stable and haven't seen it recently.


The patch still fails to apply every other boot with seemingly no errors. I don't know if Steam is overwriting the changes immediately or what's going on.

I am on the Nobara Deck image which boots straight into Steam and pretends to be a Deck itself. (Gamescope and the whole nine yards). I did confirm the cpuinfo and board_* files are what is expected so the steam-patch does know it's the Ally.

I'll keep seeing if I can find any more info. I understand it's harder to debug when you don't have the same OS. Thanks for the reply!

@Maclay74
Copy link
Owner

I think I'll try to reboot it myself a few times in a row, probably I could reproduce it on stable too... Let's see!

@ripplingsnake
Copy link

Have you found a work around? I have same issues on nobara, the tpd slider is still at 15 instead of 30, I think it has something to do with how nobara goes into steam mode, as you say it’s over riding steam patch, I have had it read 30 watts a few times then on moving the slider it goes back to 3-15 scale , it driving me nuts lol

@ripplingsnake
Copy link

This is ttyl windows in game mode it shows it’s running but watts scale is still 3-15 I don’t get it
IMG_0917

@ripplingsnake
Copy link

This seems to be an issues with how nobara changes from desktop to gamemode and it will revert back to stable from beta , steam patch always looks for verification complete in steam boot strap log text. this can be amended to Nothing to do as well as verification complete. but you have to change it in steam patch source and rebuild.
to fix the stable beta issue find steam.desktop in bin xvg open it and find the exec part and change it to this .

Exec=env LD_PRELOAD=/usr/share/gamescope-session/libextest.so /usr/bin/steam -silent -steamdeck %U

here is code to change in steam-patch src/steam

                                    if line.contains("Verification complete") || line.contains("Nothing to do") {
                                        // print line
                                        println!("{}", line);
                                        if let Some(device) = create_device() {
                                            match client.patch(device.get_patches()) {
                                                Ok(_) => println!("Steam patched"),
                                                Err(_) => eprintln!("Couldn't patch Steam"),
                                            }
                                        }
                                    }

hope this helps

@ripplingsnake
Copy link

one thing is if you select steam beta steam patch will run but you wont have the overlay steam overrides it i hope someone can fix this in time

@parkerlreed
Copy link
Author

This seems to be an issues with how nobara changes from desktop to gamemode and it will revert back to stable from beta ,

I left Nobabra because of that... Do you know what causes it to do that?

@ripplingsnake
Copy link

Yea we have it solved it was one entry in the files that was causing it in the auto load apps

@ripplingsnake
Copy link

I came send the modded file to you if you want

@parkerlreed
Copy link
Author

I've been on Arch with HandyGCCS for the time being and everything has been good.

@ripplingsnake
Copy link

Ok GE has updated the copr so it’s all automatically done works great

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

3 participants