arch/manjaro switch intel/nvidia

 



Disclaimer

PLEASE IF YOU DON'T HAVE ANY EXPERIENCE WITH COMMAND CONSOLE DON'T TRY THIS, YOUR LINUX SYSTEM MIGHT STOP WORKING


install package

Terminal:
 sudo pamac build envycontrol


switch to inte graphics card 

Terminal:
 sudo envycontrol -s integrated
Terminal:
sudo reboot

check working with integrated graphics if your computer doesn't show the login, try next step when force show console mode


switch to nvidia

Terminal:
sudo envycontrol -s hybrid --rtd 0


Terminal:
sudo reboot


try to use system that's way, if it doesn't work, open comand line in boot GRUB


PRESS -> E


add on line edit grub or line mark the image: the number 3

 LOGIC FOR ACTIVE CONSOLE MODE AND COMPUTER DOESN'T LOAD DISPLAY OR GRAPHICS

  • Example #1. This is how the line beginning with "linux" looks like for Ubuntu 18.04 LTS (it doesn't have to be identical for you, it's just so you get an idea):

  • Terminal:
    linux      /boot/vmlinuz-4.18.0-15-generic root=UUID=1438eb20-da3d-4880-bb3a-414e+++0a929 ro quiet splash $vt_handoff


  • And this is how the line beginning with "linux" looks after adding the 3 at the end:
  • Terminal:
    linux      /boot/vmlinuz-4.18.0-15-generic root=UUID=1438eb20-da3d-4880-bb3a-414e+++0a929 ro quiet splash $vt_handoff 3


  • Example #2. This is how the line beginning with "linux" looks for Fedora 31 (it's not identical for you, it's just so you get an idea):
  • Terminal:
    linux ($root)/vmlinuz-5.3.13-300.fc31.x86_64 root=/dev/mapper/fedora_localhost--live-root ro resume=/dev/mapper/fedora_localhost--live-swap rd.lvm.lv=fedora_localhost-live/root rd.lvm.lv=fedora_localhost-live/swap rhgb quiet


  • And this is how it looks after adding the 3 at the end of the line:
  • Terminal:
    linux ($root)/vmlinuz-5.3.13-300.fc31.x86_64 root=/dev/mapper/fedora_localhost--live-root ro resume=/dev/mapper/fedora_localhost--live-swap rd.lvm.lv=fedora_localhost-live/root rd.lvm.lv=fedora_localhost-live/swap rhgb quiet 3


  • 3. After doing this, press Ctrl + x or F10 to boot to console (text) mode.



now login with your user and password, try with this comand 

Terminal:
sudo envycontrol -s hybrid --rtd 3

reboot computer

if this command doesn't work, try this.

Terminal:
sudo envycontrol -s nvidia --force-comp --coolbits 24 



Source: 

https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/system_administrators_guide/sect-managing_services_with_systemd-targets

https://github.com/bayasdev/envycontrol





0 comentarios :

arch/manjaro how get old version package




install package

Terminal:
sudo pacman -S downgrade

search version the package that you want

Terminal:
sudo downgrade   obs-studio --maxdepth 20 --ala-only


--maxdepth 20: 20 result max
 --ala-only: only online package, exclude local packages

Example when you will run the command



after you select the version for your package, the comand show you, this option

add firefox to IgnorePkg? [y/n]
If you answer "y", the package will no long be upgraded in future updates until you manually remove it from the IgnorePkg line of /etc/pacman.conf



this helps me when i needed to update some packages:
  • sudo downgrade libva --maxdepth 20 --ala-only
    • yay -Qi libva



  • sudo downgrade   obs-studio --maxdepth 20 --ala-only
    • yay -Qi obs-studio


0 comentarios :