diff --git a/pika-baseos/debian/changelog b/pika-baseos/debian/changelog index 2dcad36..e529eed 100644 --- a/pika-baseos/debian/changelog +++ b/pika-baseos/debian/changelog @@ -1,3 +1,10 @@ +pika-baseos (2.5.1-100pika1) pikauwu; urgency=medium + + * Add optimus commands + + -- Ward Nakchbandi Thu, 12 Jan 2023 16:48:00 +030 + + pika-baseos (2.5.0-100pika1) pikauwu; urgency=medium * pikauwu release diff --git a/pika-baseos/debian/control b/pika-baseos/debian/control index 01e9598..dd0bc10 100644 --- a/pika-baseos/debian/control +++ b/pika-baseos/debian/control @@ -77,6 +77,7 @@ Depends: ${misc:Depends}, ## Power saving and laptops laptop-detect, supergfxctl, + switcheroo-control, acpi, acpi-call-dkms, ## Printing diff --git a/pika-baseos/usr/bin/optirun b/pika-baseos/usr/bin/optirun new file mode 120000 index 0000000..3d2e81c --- /dev/null +++ b/pika-baseos/usr/bin/optirun @@ -0,0 +1 @@ +/usr/bin/prime-run \ No newline at end of file diff --git a/pika-baseos/usr/bin/prime-run b/pika-baseos/usr/bin/prime-run new file mode 100755 index 0000000..c7bca7a --- /dev/null +++ b/pika-baseos/usr/bin/prime-run @@ -0,0 +1,3 @@ +#! /bin/bash +__GLX_VENDOR_LIBRARY_NAME=nvidia __NV_PRIME_RENDER_OFFLOAD=1 __VK_LAYER_NV_optimus=NVIDIA_only LIBVA_DRIVER_NAME=nvidia "$@" + diff --git a/pika-baseos/usr/bin/primusrun b/pika-baseos/usr/bin/primusrun new file mode 120000 index 0000000..3d2e81c --- /dev/null +++ b/pika-baseos/usr/bin/primusrun @@ -0,0 +1 @@ +/usr/bin/prime-run \ No newline at end of file