(In reply to Matthias Fulz from comment #161) > I'm just using bumblebee and do not blacklist nvidia modules. > > This is my /etc/bumblebee/xorg.conf.nvidia > > Section "ServerLayout" > Identifier "Layout0" > Option "AutoAddDevices" "true" > Option "AutoAddGPU" "false" > EndSection > > Section "Device" > Identifier "DiscreteNvidia" > Driver "nvidia" > VendorName "NVIDIA Corporation" > > > Option "NoLogo" "true" > Option "UseEDID" "false" > Option "AllowEmptyInitialConfiguration" > EndSection > > Section "Screen" > Identifier "Screen0" > Device "DiscreteNvidia" > EndSection > > And I'm just using an additional systemd service for powertop > /etc/systemd/system/powertop.service: > > [Unit] > Description=PowerTOP auto tune > > [Service] > Type=idle > Environment="TERM=dumb" > ExecStart=/usr/bin/bash -c "sleep 30 && /usr/bin/powertop --auto-tune && > sleep 10 && echo 'on' > '/sys/bus/usb/devices/1-1/power/control'" > > [Install] > WantedBy=multi-user.target > > Then I've everything ready and can use: > primusrun > optirum > > for nvidia GPU stuff. For the unloading of the modules after the use I'm > using the following scripts: > > /usr/local/bin/primusrun > > #!/bin/bash > > trap unload 1 2 3 6 > > unload() { > /usr/bin/lsmod | grep nvidia > /dev/null 2>&1 > if [ $? -eq 0 ] > then > echo "unloading nvidia modules ..." > sleep 2 > /usr/bin/lsmod | grep nvidia_modeset > /dev/null 2>&1 > if [ $? -eq 0 ] > then > sudo /usr/bin/rmmod nvidia_modeset > fi > sudo /usr/bin/rmmod nvidia > echo "finished." > fi > } > > primusrun $@ > unload > > /usr/local/bin/optirun > > #!/bin/bash > > trap unload 1 2 3 6 > > unload() { > /usr/bin/lsmod | grep nvidia > /dev/null 2>&1 > if [ $? -eq 0 ] > then > echo "unloading nvidia modules ..." > sleep 2 > /usr/bin/lsmod | grep nvidia_modeset > /dev/null 2>&1 > if [ $? -eq 0 ] > then > sudo /usr/bin/rmmod nvidia_modeset > fi > sudo /usr/bin/rmmod nvidia > echo "finished." > fi > } > > optirun $@ > unload > > That's it for me. > > In addition for powersavings I'm using TLP with quite default settings. > > Offloading inside the nvidia drivers is just not really helpful afaik :) > > Hope that helps.
Cheers! I'll see what I can do there :) Thank you so much for all the help
(In reply to Matthias Fulz from comment #161) xorg.conf. nvidia ialConfiguratio n" system/ powertop. service: PowerTOP auto tune "TERM=dumb" /usr/bin/ bash -c "sleep 30 && /usr/bin/powertop --auto-tune && usb/devices/ 1-1/power/ control' " multi-user. target bin/primusrun bin/optirun
> I'm just using bumblebee and do not blacklist nvidia modules.
>
> This is my /etc/bumblebee/
>
> Section "ServerLayout"
> Identifier "Layout0"
> Option "AutoAddDevices" "true"
> Option "AutoAddGPU" "false"
> EndSection
>
> Section "Device"
> Identifier "DiscreteNvidia"
> Driver "nvidia"
> VendorName "NVIDIA Corporation"
>
>
> Option "NoLogo" "true"
> Option "UseEDID" "false"
> Option "AllowEmptyInit
> EndSection
>
> Section "Screen"
> Identifier "Screen0"
> Device "DiscreteNvidia"
> EndSection
>
> And I'm just using an additional systemd service for powertop
> /etc/systemd/
>
> [Unit]
> Description=
>
> [Service]
> Type=idle
> Environment=
> ExecStart=
> sleep 10 && echo 'on' > '/sys/bus/
>
> [Install]
> WantedBy=
>
> Then I've everything ready and can use:
> primusrun
> optirum
>
> for nvidia GPU stuff. For the unloading of the modules after the use I'm
> using the following scripts:
>
> /usr/local/
>
> #!/bin/bash
>
> trap unload 1 2 3 6
>
> unload() {
> /usr/bin/lsmod | grep nvidia > /dev/null 2>&1
> if [ $? -eq 0 ]
> then
> echo "unloading nvidia modules ..."
> sleep 2
> /usr/bin/lsmod | grep nvidia_modeset > /dev/null 2>&1
> if [ $? -eq 0 ]
> then
> sudo /usr/bin/rmmod nvidia_modeset
> fi
> sudo /usr/bin/rmmod nvidia
> echo "finished."
> fi
> }
>
> primusrun $@
> unload
>
> /usr/local/
>
> #!/bin/bash
>
> trap unload 1 2 3 6
>
> unload() {
> /usr/bin/lsmod | grep nvidia > /dev/null 2>&1
> if [ $? -eq 0 ]
> then
> echo "unloading nvidia modules ..."
> sleep 2
> /usr/bin/lsmod | grep nvidia_modeset > /dev/null 2>&1
> if [ $? -eq 0 ]
> then
> sudo /usr/bin/rmmod nvidia_modeset
> fi
> sudo /usr/bin/rmmod nvidia
> echo "finished."
> fi
> }
>
> optirun $@
> unload
>
> That's it for me.
>
> In addition for powersavings I'm using TLP with quite default settings.
>
> Offloading inside the nvidia drivers is just not really helpful afaik :)
>
> Hope that helps.
Cheers! I'll see what I can do there :) Thank you so much for all the help