[opensuse-factory] better-suse-prime
I've been working on improvements to suse-prime. In particular, the ability to turn off the NVIDIA card entirely with bbswitch when not in use. This adds some complexity, but it is worth it as I have noticed my laptop idle power consumption using the Intel card go from 12W to about 6W when the NVIDIA card is powered off and a gain of -10 degrees on the temperature. You can find a description and instructions on github: https://github.com/bubbleguuum/better-suse-prime of course, the suse-prime maintainers are encouraged to pick any bits they see fit for the regular package. -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
On Mon, Jan 21, 2019 at 05:43:30PM +0100, Michael Pujos wrote:
I've been working on improvements to suse-prime.
In particular, the ability to turn off the NVIDIA card entirely with bbswitch when not in use. This adds some complexity, but it is worth it as I have noticed my laptop idle power consumption using the Intel card go from 12W to about 6W when the NVIDIA card is powered off and a gain of -10 degrees on the temperature.
You can find a description and instructions on github: https://github.com/bubbleguuum/better-suse-prime
of course, the suse-prime maintainers are encouraged to pick any bits they see fit for the regular package.
Thanks! Sounds interesting! Could you do a pull request against https://github.com/michalsrb/SUSEPrime Thanks again, Stefan Public Key available ------------------------------------------------------ Stefan Dirsch (Res. & Dev.) SUSE LINUX GmbH Tel: 0911-740 53 0 Maxfeldstraße 5 FAX: 0911-740 53 479 D-90409 Nürnberg http://www.suse.de Germany --------------------------------------------------------------- SUSE Linux GmbH, GF: Felix Imendörffer, Jane Smithard, Graham Norton, HRB 21284 (AG Nürnberg) --------------------------------------------------------------- -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
On 1/21/19 8:54 PM, Stefan Dirsch wrote:
On Mon, Jan 21, 2019 at 05:43:30PM +0100, Michael Pujos wrote:
I've been working on improvements to suse-prime.
In particular, the ability to turn off the NVIDIA card entirely with bbswitch when not in use. This adds some complexity, but it is worth it as I have noticed my laptop idle power consumption using the Intel card go from 12W to about 6W when the NVIDIA card is powered off and a gain of -10 degrees on the temperature.
You can find a description and instructions on github: https://github.com/bubbleguuum/better-suse-prime
of course, the suse-prime maintainers are encouraged to pick any bits they see fit for the regular package. Thanks! Sounds interesting! Could you do a pull request against
https://github.com/michalsrb/SUSEPrime
Thanks again, Stefan
Will work on it. By default and for simplicity it will work exactly as suse-prime (just needing to logout and login) but with my improvements (Intel driver support, BusID for intel, working external monitor support with nvidia). bbswitch support for turning off the nvidia card needs special install steps and is optional but largely the most interesting modification I made, but it will be up to user to do it if he wants to, using detailed instructions I wrote. Does it looks ok for you ? -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
On Tue, Jan 22, 2019 at 02:16:45PM +0100, Michael Pujos wrote:
On 1/21/19 8:54 PM, Stefan Dirsch wrote:
On Mon, Jan 21, 2019 at 05:43:30PM +0100, Michael Pujos wrote:
I've been working on improvements to suse-prime.
In particular, the ability to turn off the NVIDIA card entirely with bbswitch when not in use. This adds some complexity, but it is worth it as I have noticed my laptop idle power consumption using the Intel card go from 12W to about 6W when the NVIDIA card is powered off and a gain of -10 degrees on the temperature.
You can find a description and instructions on github: https://github.com/bubbleguuum/better-suse-prime
of course, the suse-prime maintainers are encouraged to pick any bits they see fit for the regular package. Thanks! Sounds interesting! Could you do a pull request against
https://github.com/michalsrb/SUSEPrime
Thanks again, Stefan
Will work on it. By default and for simplicity it will work exactly as suse-prime (just needing to logout and login) but with my improvements (Intel driver support, BusID for intel, working external monitor support with nvidia). bbswitch support for turning off the nvidia card needs special install steps and is optional but largely the most interesting modification I made, but it will be up to user to do it if he wants to, using detailed instructions I wrote. Does it looks ok for you ?
There are some things I would like to discuss, but would prefer to comment the appropriate pull request instead of doing this here, so things are properly tracked. Thanks, Stefan Public Key available ------------------------------------------------------ Stefan Dirsch (Res. & Dev.) SUSE LINUX GmbH Tel: 0911-740 53 0 Maxfeldstraße 5 FAX: 0911-740 53 479 D-90409 Nürnberg http://www.suse.de Germany --------------------------------------------------------------- SUSE Linux GmbH, GF: Felix Imendörffer, Jane Smithard, Graham Norton, HRB 21284 (AG Nürnberg) --------------------------------------------------------------- -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
dear Michael,
thank you very much for your work, bumblebee and suse-prime never
worked as expected for me, but better-suse-prime made Civ VI run
flawlessy.
I need to remove bbswitch because the nvidia driver crashed with it,
but who cares?
Thank you again, good work.
Daniele
Il giorno mar 22 gen 2019 alle ore 17:34 Stefan Dirsch
On Tue, Jan 22, 2019 at 02:16:45PM +0100, Michael Pujos wrote:
On 1/21/19 8:54 PM, Stefan Dirsch wrote:
On Mon, Jan 21, 2019 at 05:43:30PM +0100, Michael Pujos wrote:
I've been working on improvements to suse-prime.
In particular, the ability to turn off the NVIDIA card entirely with bbswitch when not in use. This adds some complexity, but it is worth it as I have noticed my laptop idle power consumption using the Intel card go from 12W to about 6W when the NVIDIA card is powered off and a gain of -10 degrees on the temperature.
You can find a description and instructions on github: https://github.com/bubbleguuum/better-suse-prime
of course, the suse-prime maintainers are encouraged to pick any bits they see fit for the regular package. Thanks! Sounds interesting! Could you do a pull request against
https://github.com/michalsrb/SUSEPrime
Thanks again, Stefan
Will work on it. By default and for simplicity it will work exactly as suse-prime (just needing to logout and login) but with my improvements (Intel driver support, BusID for intel, working external monitor support with nvidia). bbswitch support for turning off the nvidia card needs special install steps and is optional but largely the most interesting modification I made, but it will be up to user to do it if he wants to, using detailed instructions I wrote. Does it looks ok for you ?
There are some things I would like to discuss, but would prefer to comment the appropriate pull request instead of doing this here, so things are properly tracked.
Thanks, Stefan
Public Key available ------------------------------------------------------ Stefan Dirsch (Res. & Dev.) SUSE LINUX GmbH Tel: 0911-740 53 0 Maxfeldstraße 5 FAX: 0911-740 53 479 D-90409 Nürnberg http://www.suse.de Germany --------------------------------------------------------------- SUSE Linux GmbH, GF: Felix Imendörffer, Jane Smithard, Graham Norton, HRB 21284 (AG Nürnberg) --------------------------------------------------------------- -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
-- Daniele -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
понеділок, 21 січня 2019 р. 18:43:30 EET Michael Pujos написано:
I've been working on improvements to suse-prime.
In particular, the ability to turn off the NVIDIA card entirely with bbswitch when not in use. This adds some complexity, but it is worth it as I have noticed my laptop idle power consumption using the Intel card go from 12W to about 6W when the NVIDIA card is powered off and a gain of -10 degrees on the temperature.
You can find a description and instructions on github: https://github.com/bubbleguuum/better-suse-prime
of course, the suse-prime maintainers are encouraged to pick any bits they see fit for the regular package.
Hi, I'm using bumblebee, have you tried to make this script compatible with bumblebee? In most cases I'm happy with optirun, but sometimes (vulkan) I need separate X. ATM I'm using nvidia-xrun script. Have you any hints how to make better-suse-prime to work with bumblebee driver installation? -- Kind regards, Mykola Krachkovsky -- Найкращі побажання, Микола Крачковський
On 1/25/19 3:49 PM, Mykola Krachkovsky wrote:
понеділок, 21 січня 2019 р. 18:43:30 EET Michael Pujos написано:
I've been working on improvements to suse-prime.
In particular, the ability to turn off the NVIDIA card entirely with bbswitch when not in use. This adds some complexity, but it is worth it as I have noticed my laptop idle power consumption using the Intel card go from 12W to about 6W when the NVIDIA card is powered off and a gain of -10 degrees on the temperature.
You can find a description and instructions on github: https://github.com/bubbleguuum/better-suse-prime
of course, the suse-prime maintainers are encouraged to pick any bits they see fit for the regular package. Hi,
I'm using bumblebee, have you tried to make this script compatible with bumblebee? In most cases I'm happy with optirun, but sometimes (vulkan) I need separate X. ATM I'm using nvidia-xrun script. Have you any hints how to make better-suse-prime to work with bumblebee driver installation?
I started improving suse-prime because I found Bumblebee way too complicated, and looking at its documentation or the Arch Wiki gave me a headache :/. I just needed a way to switch xorg to Intel or NVIDIA, with best battery performance on Intel (thus bbswitch integration). And for NVIDIA I only need it for external monitor support. So suse-prime has limited scope just for switching xorg entirely from a graphic card to another. If a more complex scenario is needed, I guess it is Bumblebee... -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
пʼятниця, 25 січня 2019 р. 17:47:47 EET Michael Pujos написано:
So suse-prime has limited scope just for switching xorg entirely from a graphic card to another. If a more complex scenario is needed, I guess it is Bumblebee... Yeah, it's not as versatile as Bumblebee, but bumblebee is effectively dead, so I've tried better-suse-prime, it works fine for me, thanks, and it's universal. But just one problem, after switch to nvidia and switching back to intel, nvidia is still in use. After relogin intel card is used but nvidia still on and can't be switched off (nvidia driver in use). Only restart helped. Is there any simpler way?
-- Kind regards, Mykola Krachkovsky -- Найкращі побажання, Микола Крачковський
Hi Michael, in the README.md you should add something related to the upgrade process of the drivers and the kernel. If you are on nvidia and you do perform a zypper dup with a kernel update it is very likely you got the nvidia module in the initrd. So before attemping to make a system update it is better to switch on intel and then invoke zypper dup. Cheers -- Daniele -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
On 1/26/19 6:57 PM, Daniele Granata wrote:
Hi Michael, in the README.md you should add something related to the upgrade process of the drivers and the kernel. If you are on nvidia and you do perform a zypper dup with a kernel update it is very likely you got the nvidia module in the initrd. So before attemping to make a system update it is better to switch on intel and then invoke zypper dup.
Cheers
NVIDIA package update in a 'zypper dup' should be transparent (unless I missed something): the module will be recompiled and initrd regenerated, but the module will still be excluded from initrd because of the 09-nvidia-blacklist.conf rule. -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
Hi, Have you considered creating an OBS package? I'll make one based on your repository if you don't mind (with patches to base_dir), is it ok? -- Kind regards, Mykola Krachkovsky -- Найкращі побажання, Микола Крачковський
On 1/26/19 8:23 PM, Mykola Krachkovsky wrote:
Hi,
Have you considered creating an OBS package? I'll make one based on your repository if you don't mind (with patches to base_dir), is it ok?
My changes have been integrated into the regular suse-prime package: https://github.com/openSUSE/SUSEPrime They will be in v0.5 of the package, so look for it in a future TW snapshot. Make sure to fully uninstall better-suse-prime (revert what you did for install) when you switch to official suse-prime. -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
26.01.2019 22:37, Michael Pujos пишет:
On 1/26/19 8:23 PM, Mykola Krachkovsky wrote:
Hi,
Have you considered creating an OBS package? I'll make one based on your repository if you don't mind (with patches to base_dir), is it ok?
My changes have been integrated into the regular suse-prime package: https://github.com/openSUSE/SUSEPrime
They will be in v0.5 of the package, so look for it in a future TW snapshot. Make sure to fully uninstall better-suse-prime (revert what you did for install) when you switch to official suse-prime.
I still miss any support for *PRIME* in this package (i.e. support for headless dGPU with display connected to iGPU). Normally you are expected to connect two GPUs after X server is started; where is this done when using suse-prime? -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
On Sat, Jan 26, 2019 at 11:20:36PM +0300, Andrei Borzenkov wrote:
26.01.2019 22:37, Michael Pujos пишет:
On 1/26/19 8:23 PM, Mykola Krachkovsky wrote:
Hi,
Have you considered creating an OBS package? I'll make one based on your repository if you don't mind (with patches to base_dir), is it ok?
My changes have been integrated into the regular suse-prime package: https://github.com/openSUSE/SUSEPrime
They will be in v0.5 of the package, so look for it in a future TW snapshot. Make sure to fully uninstall better-suse-prime (revert what you did for install) when you switch to official suse-prime.
I still miss any support for *PRIME* in this package (i.e. support for headless dGPU with display connected to iGPU). Normally you are expected to connect two GPUs after X server is started; where is this done when using suse-prime?
It's a patch in our Xserver. ;-) --> n_xserver-optimus-autoconfig-hack.patch Thanks, Stefan Public Key available ------------------------------------------------------ Stefan Dirsch (Res. & Dev.) SUSE LINUX GmbH Tel: 0911-740 53 0 Maxfeldstraße 5 FAX: 0911-740 53 479 D-90409 Nürnberg http://www.suse.de Germany --------------------------------------------------------------- SUSE Linux GmbH, GF: Felix Imendörffer, Jane Smithard, Graham Norton, HRB 21284 (AG Nürnberg) --------------------------------------------------------------- -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
27.01.2019 15:32, Stefan Dirsch пишет:
On Sat, Jan 26, 2019 at 11:20:36PM +0300, Andrei Borzenkov wrote:
26.01.2019 22:37, Michael Pujos пишет:
On 1/26/19 8:23 PM, Mykola Krachkovsky wrote:
Hi,
Have you considered creating an OBS package? I'll make one based on your repository if you don't mind (with patches to base_dir), is it ok?
My changes have been integrated into the regular suse-prime package: https://github.com/openSUSE/SUSEPrime
They will be in v0.5 of the package, so look for it in a future TW snapshot. Make sure to fully uninstall better-suse-prime (revert what you did for install) when you switch to official suse-prime.
I still miss any support for *PRIME* in this package (i.e. support for headless dGPU with display connected to iGPU). Normally you are expected to connect two GPUs after X server is started; where is this done when using suse-prime?
It's a patch in our Xserver. ;-)
--> n_xserver-optimus-autoconfig-hack.patch
Ah. OK, thanks. May be it should be mentioned in readme/manual for suse-prime, it is not something easily discoverable. -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
Michael Pujos wrote:
NVIDIA package update in a 'zypper dup' should be transparent (unless I missed something): the module will be recompiled and initrd regenerated, but the module will still be excluded from initrd because of the 09-nvidia-blacklist.conf rule.
At least for me this doesn't work properly (I'm using bumblebee, so it's nvidia-bumblebee). Installing a new kernel does unfortunately not trigger the dkms compile of the modules for it :( -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
вівторок, 29 січня 2019 р. 14:02:46 EET Peter Suetterlin написано:
Mykola Krachkovsky wrote:
понеділок, 28 січня 2019 р. 12:47:22 EET Peter Suetterlin написано:
At least for me this doesn't work properly (I'm using bumblebee, so it's nvidia-bumblebee). Installing a new kernel does unfortunately not trigger the dkms compile of the modules for it :(
It's not supposed to work with bumblebee driver installation. If you want to check this, you have to uninstall bumblebee-nvidia(-32bit) and install drivers from nvidia repository for Tumblweed [1] or Leap [2]. And yes, optirun/ primusrun wouldn't work (at least without tweaks).
[1] https://download.nvidia.com/opensuse/tumbleweed/ [2] https://download.nvidia.com/opensuse/leap/15.0/
Thanks Mykola. I know it works with the plain nvidia package (I have a desktop with a 1060 card). On the laptop I intentionally chose bumblebee. It's only a minor nuissance - the package does set up dkms properly, so all I need to do is manually trigger a build after a kernel update. And even if I forget it, nothing breaks - the system itself always only runs on intel. Maybe it's only some definitions/triggers missing in the package scripts, I never investigated it further. Maybe I should....
Cheers,
Pit
prime-select/better-prime-select expects installed alternative for libglx.so: ``` libglx_nvidia=`update-alternatives --list libglx.so|grep nvidia-libglx.so` update-alternatives --set libglx.so $libglx_nvidia > /dev/null ``` and it doesn't setup LD_LIBRARY_PATH which is mandatory for bumblebee driver installation. So I'm not sure it's possible to "fix" this script for such case. In fact nvidia-xrun is what designed to work with bumblebee driver installation. I've used it before [1]. It works, though there are some problems: 1. Vulkan is present but it has zero format count, starting just `optirun sleep 1` fixes that problem, but still it strange. 2. After nvidia-xrun I had strange visual artifact in left corner in every tty. 3. Can't return to inter driver (without restart), system just hangs. Maybe it's possible to "fix" bumblebee optirun (or primusrun) to work with official nvidia driver installation. [1] https://build.opensuse.org/package/show/home:NickLion:nv4:1/nvidia-xrun OFFTOPIC: For some reason KMail is replying privately on your email, even when I use `L` to address list. Sorry, I haven't checked. -- Kind regards, Mykola Krachkovsky -- Найкращі побажання, Микола Крачковський
participants (6)
-
Andrei Borzenkov
-
Daniele Granata
-
Michael Pujos
-
Mykola Krachkovsky
-
Peter Suetterlin
-
Stefan Dirsch