(Solved) Permission denied

Questions about applications and software
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
User avatar
farkas
Level 5
Level 5
Posts: 552
Joined: Mon Sep 21, 2015 6:10 pm
Location: Oregon

(Solved) Permission denied

Post by farkas »

I'm trying to switch to the AMD gpu card on my laptop.

viewtopic.php?f=59&t=279363

I may have a solution with the help of roblm but I keep running into Permission denied.

steve@steve:~$ sudo echo ON > /sys/kernel/debug/vgaswitcheroo/switch
bash: /sys/kernel/debug/vgaswitcheroo/switch: Permission denied
steve@steve:~$

and

steve@steve:~$ sudo tee /sys/kernel/debug/vgaswitcheroo/switch <<< ON
[sudo] password for steve:
ON
steve@steve:~$ sudo echo DIS > /sys/kernel/debug/vgaswitcheroo/switch
bash: /sys/kernel/debug/vgaswitcheroo/switch: Permission denied
steve@steve:~$

How do I get permission?
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
If your query has been resolved, edit your first post and add [SOLVED] to the subject line.
If you found a solution on your own please post it.
A generation which ignores history has no past and no future.
WharfRat

Re: Permission denied

Post by WharfRat »

First try sudo -i which will escalate to root privileges in the terminal then echo ON > /sys/kernel/debug/vgaswitcheroo/switch

If you want to use tee and not the root privileged terminal then echo ON|sudo tee /sys/kernel/debug/vgaswitcheroo/switch
User avatar
farkas
Level 5
Level 5
Posts: 552
Joined: Mon Sep 21, 2015 6:10 pm
Location: Oregon

Re: Permission denied

Post by farkas »

Thank you WharfRat.
If your query has been resolved, edit your first post and add [SOLVED] to the subject line.
If you found a solution on your own please post it.
A generation which ignores history has no past and no future.
Locked

Return to “Software & Applications”