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

Issues on 4.18.9-gentoo kernel #5782

Closed
Kreyren opened this issue Sep 24, 2018 · 44 comments
Closed

Issues on 4.18.9-gentoo kernel #5782

Kreyren opened this issue Sep 24, 2018 · 44 comments

Comments

@Kreyren
Copy link

Kreyren commented Sep 24, 2018

Your system information

  • Steam client version (build number or date): Unknown, downloaded using https://wiki.gentoo.org/wiki/Steam#Installation first manual then Manual with alternative installer script.
  • Distribution (e.g. Ubuntu): 4.18.9-gentoo
  • Opted into Steam client beta?: Yes
  • Have you checked for system updates?: Yes

Please describe your issue in as much detail as possible:

  1. Compiled xpad in kernel which works out of the box on 4.18.4-gentoo, but does NOT on 4.18.9-gentoo.
    1.1 Xbox360 Controller was detected by gentoo based on indicator on the controller, but coudn't be used in steam and steamapps. Tried to fix it installing https://packages.gentoo.org/packages/games-util/xboxdrv. Coudn't verify due fatal issue.
  2. Minor issues (crashes) with steam client which lead to fatal issue (crash on startup).

Steps for reproducing this issue:

Log of actions:
https://wiki.gentoo.org/wiki/User:Kreyren/ULTIMATE_BREAKER/Steam

Additional info:

dmesg && cat /var/log/Xorg.0.log && cat /usr/src/linux/.config && uname -r && uname -a && eselect kernel list && emerge --info && cat /etc/portage/make.conf && cat /etc/portage/package.*/steam:
https://bpaste.net/show/2e82dd9b43d4

.tmp files
https://drive.google.com/drive/folders/1D_dls-5NItCHVC8FFCbBDTDhyLuswMnp?usp=sharing

@kisak-valve
Copy link
Member

Hello @Kreyren, your minidump indicates a crash in libdbus-1.so.3.5.8. Can you move ~/.local/share/Steam/ubuntu12_32/steam-runtime/pinned_libs* somewhere out of the way, then start steam to regenerate those folders? If that helps, please list the difference between the old and new variants of the pinned_libs folders.

@Kreyren
Copy link
Author

Kreyren commented Sep 24, 2018

@kisak-valve

Invoked ~/.local/share/Steam/ubuntu12_32/steam-runtime $ mv pinned_libs_32 pinned_libs_32.old && mv pinned_libs_64 pinned_libs_64.old && steam

resulted in same issue.

@Kreyren
Copy link
Author

Kreyren commented Sep 24, 2018

@kisak-valve

Note that if steam --reset it invoked steam is able to start again and play games without Xbox360 support (even when it's compiled in kernel and using xboxdvr):

https://bpaste.net/show/58bbbd014034

Previous issue occur later again on restart.

http://bpaste.net/show/317e140d66cc

Based on my experience this issue is not present on the very simmilar configuration running 4.18.4-gentoo.

Can switch to 4.48.4-gentoo on demand, but not that this is fresh installation on gentoo that is running on 4.18.4-gentoo only.

@chewi
Copy link

chewi commented Sep 24, 2018

I'm using xboxdrv (admittedly my own custom patched version with stability fixes) with 4.18.9 and it worked for me just yesterday. Note that xboxdrv doesn't need the xpad driver because it talks directly via USB, the driver may even make it more temperamental. You should also test with something simpler like jstest rather than Steam.

@chewi
Copy link

chewi commented Sep 24, 2018

I also highly recommend installing steam-overlay rather than the other methods. We apply patches such as this one, which I have found can make a difference.

@Kreyren
Copy link
Author

Kreyren commented Sep 24, 2018

@chewi Thanks for info, trying steam-overlay based on instructions from gentoo wiki.

@Kreyren
Copy link
Author

Kreyren commented Sep 24, 2018

@chewi Encounter different issue(?) on the overlay: http://bpaste.net/show/33fce7a30c99

steam --reset && steam
http://bpaste.net/show/db10cdd7e5c4

I believe that i removed the old steam using emerge -C @steam steam steam* && rm -rf /home/kreyre/steam* && rm -rf /home/kreyren/.steam*

afaik there are no instructions for the removal so i improvised..

@kisak-valve
Copy link
Member

For what it's worth, the majority of the steam client is in ~/.local/share/Steam.

@Kreyren
Copy link
Author

Kreyren commented Sep 24, 2018

@kisak-valve thanks for info.

Invoked rm -rf /home/kreyren/steam* && rm -rf /home/kreyren/.local/share/Steam && emerge -C steam && emerge steam-meta

Was prompted with a It seems that you moved.. or simmilar options Reinstall/Cancel, chosed reinstall.
http://bpaste.net/show/a071c065a9e3

Won't open again:
http://bpaste.net/show/ce37d8c89bd8

Trying https://wiki.gentoo.org/wiki/Steam/Client_troubleshooting#Segfault_when_remember_my_password_is_selected

Invoked rm -fr ~/.local/share/Steam/config

Steam opens
http://bpaste.net/show/f2862c44b111

Exit steam, openning again.
http://bpaste.net/show/eb946bbe7399

Won't open again.

If rm -fr ~/.local/share/Steam/config is invoked steam is able to open, but password is not saved.

Conclusion:
possibly old steam was removed from ~/.local/share/Steam and overlay version replaced it solving the previous issue?
Using steam without the saved password is acceptable for the time beeing, but steam won't detect Xbox360 nor steam controller even with xboxdvr and compiled XPAD in kernel: https://bpaste.net/show/679f717a7350.

It may also be possible that previous issue was resolved by removing ~/.local/share/Steam and i'm still running manually installed steam.. Trying to reverse-engineer the installer script.

EDIT:
I understand that previous steam was installed with sets which won't allow me to unmerge is sets are removed. Re-added them and invoked emerge -C @steam.

@chewi jstest from overlay doesn't work so i compiled from the source which doesn't seem to work. Also in xboxdrv i noticed USBController::USBController(): libusb_open() failed: LIBUSB_ERROR_ACCESS.

EDIT2:
Invoked:
find ~ -iname '*steam*' -exec rm -rf {} \;

find ~ -iname '*Steam*' -exec rm -rf {} \;

rm -rf /home/$USER/.local/share/Steam

rm /usr/local/bin/steam

emerge -C @Steam

rm -rf /etc/portage/sets/steam

rm -rf /etc/portage/package.*/steam

emerge steam-meta

@chewi
Copy link

chewi commented Sep 24, 2018

Sorry, I thought jstest was part of SDL or libevdev or something but it's actually part of games-util/joystick. No overlays required.

Regarding the error from xboxdrv, I wonder if this is simply a permissions issue. You're normally supposed to run it as root, perhaps you're not? I also pass the options --detach-kernel-driver --mimic-xpad. Beyond that, distributions annoyingly still use permissions that don't work out of the box. I added myself to the plugdev group and created /etc/udev/rules.d/99-joysticks.rules with this:

SUBSYSTEM=="input", ENV{ID_INPUT_JOYSTICK}=="1", MODE="0664", GROUP="plugdev"

As for Steam, I'm sorry you're having so much trouble there. I haven't seen an issue quite like that. I normally suggest that people disable the Steam runtime. You can make this default with USE="-steamruntime" or try it as a one-off with STEAM_RUNTIME=0 but you'll need to have the necessary dependencies installed for the latter. I have a feeling it's not that though. Most users to give LIBGL_DRI3_DISABLE=1 when starting Steam for the first time but I don't think it's that either.

@Kreyren
Copy link
Author

Kreyren commented Sep 24, 2018

New result: i believe that i'm now on steam-overlay and the controller is detected and working, but on restart it won't open again.
http://bpaste.net/show/737f0a74f6e3

Can be resolved by removing config file again:
http://bpaste.net/show/be0a33125dca

@chewi
Copy link

chewi commented Sep 24, 2018

Looking through your system info, I've noticed one big oddity. You've enabled the new AMDGPU stuff for your Southern Islands card in the kernel but you're still using the radeon X.Org driver. Your VIDEO_CARDS variable has a typo where you've put amgpu rather than amdgpu. I wonder if mixing these drivers has screwed things up.

@Kreyren
Copy link
Author

Kreyren commented Sep 24, 2018

Looking through your system info, I've noticed one big oddity. You've enabled the new AMDGPU stuff for your Southern Islands card in the kernel but you're still using the radeon X.Org driver. Your VIDEO_CARDS variable has a typo where you've put amgpu rather than amdgpu. I wonder if mixing these drivers has screwed things up.

@chewi using amdgpu radeonsi is recommended on gentoo wiki: https://wiki.gentoo.org/wiki/AMDGPU

Regarding the error from xboxdrv, I wonder if this is simply a permissions issue. You're normally supposed to run it as root, perhaps you're not? Beyond that, distributions annoyingly still use permissions that don't work out of the box. I added myself to the plugdev group and created /etc/udev/rules.d/99-joysticks.rules with this:

SUBSYSTEM=="input", ENV{ID_INPUT_JOYSTICK}=="1", MODE="0664", GROUP="plugdev"
...

Seems to work out of the box on steam-overlay now. So i didn't tried it.

Also added Uninstall section on gentoo wiki for this issue.

@chewi
Copy link

chewi commented Sep 24, 2018

Yes, but look again, you've got a typo there. It's amdgpu.

What desktop are you using? Is openbox your window manager by any chance?

@Kreyren
Copy link
Author

Kreyren commented Sep 24, 2018

Yes, but look again, you've got a typo there. It's amdgpu.

What desktop are you using? Is openbox your window manager by any chance?

Thanks for letting me know, you probably solved the issue with DXVK for me now 👍 :D

I'm using x11-wm/i3 atm which has openbox included afaik.

@chewi
Copy link

chewi commented Sep 24, 2018

I saw the Major opcode of failed request: 40 (X_TranslateCoords) error and found lots of reports tying that to openbox, although that doesn't seem to be the error that prevents it from starting.

The segmentation fault may well be caused by the Steam runtime, particularly libstdc++.so.6. Other than disabling it, you can quickly test that theory with:

LD_PRELOAD=/usr/lib64/gcc/x86_64-pc-linux-gnu/8.2.0/libstdc++.so.6 steam

@Kreyren
Copy link
Author

Kreyren commented Sep 24, 2018

@chewi testing it now
http://bpaste.net/show/3b26f972cb9f

http://bpaste.net/show/cbd8d2330b32

Can you confirm that LD_PRELOAD issue is solved?

@chewi
Copy link

chewi commented Sep 24, 2018

My bad, I'm forgetting Steam is 32-bit.

LD_PRELOAD=/usr/lib32/gcc/x86_64-pc-linux-gnu/8.2.0/libstdc++.so.6 steam

But you also need to do this every time, I don't see it in your second paste.

@Kreyren
Copy link
Author

Kreyren commented Sep 24, 2018

Noted, testing again:
http://bpaste.net/show/f24f6509ad9b

@chewi
Copy link

chewi commented Sep 24, 2018

Gah, I still got the path wrong, gcc isn't installed like other 32-bit libraries. Blame the fact that I'm currently doing out-of-hours remote server upgrades. 😫

LD_PRELOAD=/usr/lib64/gcc/x86_64-pc-linux-gnu/8.2.0/32/libstdc++.so.6 steam

@Kreyren
Copy link
Author

Kreyren commented Sep 24, 2018

@chewi It's okay i'm happy that you're helping me. ^^

http://bpaste.net/show/2447b903563d

Same issue tho

@chewi
Copy link

chewi commented Sep 24, 2018

Feel like I'm clutching at straws here. Maybe that dump file needs a closer look but I don't know about them. libstdc++.so.6 isn't the only library that can cause issues, which is why I recommend disabling the Steam runtime entirely but it could just as easily be something else altogether.

@Kreyren
Copy link
Author

Kreyren commented Sep 24, 2018

@chewi Sent me the instructions to disable steamruntime i will try it tommorow and sent you the result if it's relevant for you.

@kisak-valve
Copy link
Member

To briefly chase a different hint, do you have a dbus session running? Maybe check #4444 if the workarounds there have any effect.

@Kreyren
Copy link
Author

Kreyren commented Sep 25, 2018

@kisak-valve i'm not aware of using dbus, but it seems to be part of /desktop profile on gentoo. Check line 5982 in https://bpaste.net/show/2e82dd9b43d4.

Checking #4444

Some games "freeze" temporarily upon receiving any mouse or keyboard input, but only if using the Steam Runtime.

i don't have an issue with games freezing upon mouse/keyboard input.

invoked echo 'games-util/steam-meta steamruntime' >> /etc/portage/package.use/custom && emerge -uDN @world as root.

invoked wgetpaste -c "steam" - http://bpaste.net/show/c837940df186

invoked rm -fr ~/.local/share/Steam/config to fix the issue with saved password.

invoked wgetpaste -c "steam" - http://bpaste.net/show/d7ac864812b6

@chewi is running LD_PRELOAD=/usr/lib64/gcc/x86_64-pc-linux-gnu/8.2.0/32/libstdc++.so.6 steam still required on runtime USE flag?

Trying dbus-run-session steam based on #4444 (comment).

Invoked wgetpaste -c "dbus-run-session steam" - http://bpaste.net/show/94ea8212936d

Trying wgetpaste -c "rm -fr ~/.local/share/Steam/config && dbus-run-session steam" - http://bpaste.net/show/041f705f00b2

@kakra
Copy link

kakra commented Sep 27, 2018

@Kreyren A very dumb question but did you emerge -1a @module-rebuild after compiling the new kernel? It's easy to forget that for 3rd-party drivers.

Here's a quick fix to automate this:

# cat /etc/kernel/postinst.d/70-emerge-module-rebuild
#!/bin/bash
exec env -i PATH=$PATH /usr/bin/emerge -1v --usepkg=n --selective=n @module-rebuild

@Kreyren
Copy link
Author

Kreyren commented Sep 28, 2018

@kakra I'm compiling kernel using:

eselect list kernel and selecting kernel to use, followed by make && make modules_install && make install && shutdown -r now.

Is emerge -la @module-rebuild required? it's not mentioned anywhere on the wiki afaik.

@chewi
Copy link

chewi commented Sep 28, 2018

@chewi is running LD_PRELOAD=/usr/lib64/gcc/x86_64-pc-linux-gnu/8.2.0/32/libstdc++.so.6 steam still required on runtime USE flag?

If you mean when steamruntime is disabled then no, it shouldn't be.

Regarding @module-rebuild, if you have a Radeon card then you probably don't have any relevant 3rd party drivers. That would likely only apply to NVIDIA users and you'd have much bigger problems than Steam not working.

@kakra
Copy link

kakra commented Sep 28, 2018

@Kreyren @chewi emerge -1a @module-rebuild is a no-op if there are no out-of-tree modules. It's worth a try to see if it shows something. I think xpad may provide out-of-tree drivers (but I'm not sure, I'm using xpadneo).

If @module-rebuild shows up modules for you, and you want to continue using make modules_install etc the way you're used to be, I recommend to place the postinst hook I've mentioned. It's the same way I do it: make -j9 && make modules_install install && reboot. :-) Hooks are in place here to rebuild emerged modules, rebuild the initramfs, and update the boot loader.

BTW: It's "minus one A", not "minus L A" (-1a), or with long options: emerge --one-shot --ask @module-rebuild.

@Kreyren
Copy link
Author

Kreyren commented Sep 28, 2018

@chewi games-util/steam-meta steamruntime is now present in package.use/custom and emerged. It's possible that it was applied before since it seems to not change much.
Added just to decrease the amount of variables.

@kakra

I think xpad may provide out-of-tree drivers (but I'm not sure, I'm using xpadneo).

x11-misc/xpad is now unmerged and i'm using just kernel configuration which is sufficient on steam-overlay, invoking emerge -la @modules-rebuild which did not detect anything to pull == http://bpaste.net/show/086bc2a2d5e9.

if @module-rebuild shows up modules for you, and you want to continue using make modules_install etc the way you're used to be, I recommend to place the postinst hook I've mentioned. It's the same way I do it: make -j9 && make modules_install install && reboot. :-)

make -j9 results in No rule to make target on my system http://bpaste.net/show/6e5812ae36a0 (invoked from /usr/src/linux). So i was using make instead.

Hooks are in place here to rebuild emerged modules, rebuild the initramfs, and update the boot loader.

Noted.

It's "minus one A", not "minus L A" (-1a),

Noted, copy-pasted your command to terminal.

@chewi
Copy link

chewi commented Sep 28, 2018

@chewi games-util/steam-meta steamruntime is now present in package.use/custom and emerged. It's possible that it was applied before since it seems to not change much. Added just to decrease the amount of variables.

To be clear, I want you to disable it, not enable it. 😁

@Kreyren
Copy link
Author

Kreyren commented Sep 28, 2018

@chewi i missunderstood then :D Disabling it now.

Invoking steam with steamruntime USE flag disabled in package.use/custom.

Invoked wgetpaste -c "steam" which results in https://bpaste.net/show/e47393eaf874.

Invoking rm -fr ~/.local/share/Steam/config to fix saved password bug(?).

Invoking wgetpaste -c "steam" which worked and allow me to log-in, tried RocketLeague to verify that Xbox360 Controller is detected which is confirmed == http://bpaste.net/show/19f668f20fa3

@kisak-valve
Copy link
Member

kisak-valve commented Sep 28, 2018

@Kreyren, can you rc-status -a | grep dbus and start the service if it is not already. The saved password quirk reads like #3415.

If that doesn't make a difference, please check that sys-apps/dbus has ABI_X86="32 64" and regenerate the pinned library folders again if you need to change it.

@Kreyren
Copy link
Author

Kreyren commented Sep 28, 2018

@kisak-valve

wgetpaste -c "rc-status -a | grep dbus"
http://bpaste.net/show/4e07a5c4d3cb

wgetpaste -I
http://bpaste.net/show/e263c3c44a56

Line 82 confirms that dbus is present on the system within Gentoo /desktop profile.

Based on informations from https://wiki.gentoo.org/wiki/OpenRC_to_systemd_Cheatsheet

  • Invoked /etc/init.d/dbus status which stout is * status: stopped.
  • Invoking /etc/init.d/dbus start. Requires root permission switching on root.
  • Invoking /etc/init.d/dbus start` from root. stout == http://bpaste.net/show/b8f8d9a53cfc.

The saved password quirk reads #3415.

I don't understand what do you mean. Please provide more info.

If that doesn't make a difference, please check that sys-apps/dbus has ABI_X86="32 64" and regenerate the pinned library folders again if you need to change it.

27/09/2018 (yesterday) system was fully updated using emerge -uDNj @world && emerge --depclean with ABI_X86="64 32" in make.conf.

make.conf == http://bpaste.net/show/791fda930f3d

Sending stout of emerge -pv dbus for verification == http://bpaste.net/show/544a573b76e4

invoking steam again now, note that Remember my password was disabled while steam was invoked, logged-in, started rocket league to verify if xbox360 controller is working which is confirmed.

stout == http://bpaste.net/show/2f4b5140139d

@Kreyren
Copy link
Author

Kreyren commented Dec 14, 2018

I'm having the same issue on default/linux/amd64/17.0/desktop (stable) profile using xpad (https://paste.pound-python.org/show/zl0oMVjvxFSXjC9GrHfc/) and steam-laucher from steam-overlay.

Symptoms

Xbox360 Controller is not recognized in steam-games.

Steps to reproduce

On gentoo install xpad on desktop profile and emerge steam-laucher or steam-meta from steam-overlay.

Info

Transcript of IRC = https://pastebin.com/raw/UUEFra1Y

Installed packages = https://paste.pound-python.org/show/uTER1LkBdMENzOyyIE1n/

emerge --info = https://paste.pound-python.org/show/Xksc1WNHzBUXOTLUQoDW/

Kernel configuration = https://paste.pound-python.org/raw/xnecealL5LbhWGYhISFR/

rc-status -a | grep dbus = https://paste.pound-python.org/show/d2lEceglWB9Xuivmzw4E/

/etc/init.d/dbus status resuts in * status: started

Parsed games-util/steam-launcher -steamruntime in package.use = result in GUI Fatal Error: Failed to load steamui.so

Tried xboxdrv
  • disabled xpad and enabled uinput in kernel, applied changes and restarted.
  • xboxdrv results in USBController::USBController(): libusb_open() failed: LIBUSB_ERROR_ACCESS investigating
    • Using sudo fixed this issue.
  • Xbox360 controller seems to be detected, meaning outputs info bassed on what key is pressed in terminal, but it is NOT detected by steam alike:
X1: -1016 Y1:   226  X2:   112 Y2:   467  du:0 dd:0 dl:0 dr:0  back:0 guide:0 start:0  TL:0 TR:0  A:0 B:0 X:0 Y:0  LB:0 RB:0  LT:  0 RT:  0

Noticed message:

 * If you want to use the Steam controller, please make sure
 * CONFIG_INPUT_UINPUT is enabled in your kernel config.
 * Execute /usr/bin/steam to download and install the actual
 * client into your home folder. After installation, the script
 * also starts the client from your home folder.
 * 
 * We disable STEAM_RUNTIME in order to ignore bundled libraries
 * and use installed system libraries instead. If you have problems,
 * try starting Steam with: STEAM_RUNTIME=1 steam
 * 
 * Notice: Valve only supports Steam with the runtime enabled!
 * 
 * The Steam client and the games are _not_ controlled by Portage.
 * Updates are handled by the client itself.

!!! existing preserved libs found

Parsed games-util/steam-launcher steamruntime in package.use and re-emerged.


Noticed:

$ steam 
/home/kreyren/.local/share/Steam/steam.sh: line 106: VERSION_ID: unbound variable
/home/kreyren/.local/share/Steam/steam.sh: line 106: VERSION_ID: unbound variable
Running Steam on gentoo  64-bit
STEAM_RUNTIME is enabled by the user
Pins up-to-date!

Dunno what it means..

Fixed it by "clicking on OK in previous error" 🤦‍♂️

Results in: https://pastebin.com/raw/veQegqJn seems that Steam Controller is detected, but Xbox360 is not.

@kakra
Copy link

kakra commented Dec 15, 2018

Is this about the original Xbox360 controller or the current model Xbox One S?

@Kreyren
Copy link
Author

Kreyren commented Dec 15, 2018

@kakra As mensioned Xbox360 controller (https://upload.wikimedia.org/wikipedia/commons/thumb/e/ed/Xbox-360-S-Controller.png/800px-Xbox-360-S-Controller.png)

Not sure if it's original it says "model 1403" under battery. None serial number that i can see.

@kakra
Copy link

kakra commented Dec 15, 2018

@Kreyren That's the original... The One S has a different logo button. For the "One S" I can recommend using the xpadneo driver but it won't support the original 360 variant.

@Kreyren
Copy link
Author

Kreyren commented Dec 15, 2018

@kakra I believe that i have required drivers for Xbox360 controller:

CONFIG_JOYSTICK_XPAD=y
CONFIG_JOYSTICK_XPAD_FF=y
CONFIG_JOYSTICK_XPAD_LEDS=y

Sending .config for verification: https://paste.pound-python.org/raw/xnecealL5LbhWGYhISFR/ + added in post above.

Reciever is in ON position and Controller is detected as player 1 so i believe that the driver is loaded and recognized. Will verify in non-steam app.

@Kreyren
Copy link
Author

Kreyren commented Dec 15, 2018

Tried xboxdrv results updated in post above.

@Kreyren
Copy link
Author

Kreyren commented Dec 16, 2018

@chewi Found solution(?):

Updating udev seems to solved the issue https://paste.pound-python.org/show/2w891isMipQwyAwhKEm3/

EDIT: Controller is detected in steam, but i'm unable to use it in games. Also i can use X2 as a mouse.
EDIT2: Changed systemctl for openrc https://paste.pound-python.org/show/UcByOEpzLLbAjWoXCeVG/
EDIT3: Disabled Xbox configuration in big-picture and games are working now. Minor: X1 can't be used in menu.

@kisak-valve
Copy link
Member

Hello @Kreyren, are you still experiencing this issue on an up to date system?

@Kreyren
Copy link
Author

Kreyren commented Feb 12, 2021

@kisak-valve I am not aware of any issues with it atm.

@kisak-valve
Copy link
Member

Thanks, closing.

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

No branches or pull requests

4 participants