Skip to content

Repository files navigation

Dotfiles

Various dotfiles as well as a install.sh script for installing the basic needs when setting up a new system. This includes installing git, tmux etc. This readme also contains some notes and nice-to-have discussions for when things go wrong, as well as experiences made when working on Linux systems.

General

Fonts

I usually use the Hack font which can be found here.

Viewing Markdown locally

To view Markdown locally I use grip. It can be installed by running pip3 install grip and then grip path/to/file.md.

Notes

Installing the nvidia driver

... can be a mess, but it can also be alright. Usually the following should work:

  1. sudo add-apt-repository ppa:graphics-drivers/ppa
  2. sudo apt update
  3. sudo ubuntu-drivers autoinstall

Then reboot the device. After rebooting run: sudo apt install nvidia-cuda-toolkit gcc-7

This solution was found here

To switch between the integrated graphics and the Nvidia card run either sudo prime-select nvidia or sudo prime-select intel. To check what card is being used run prime-select query.

Nvidia login-loop

If you end up in the infinite nvidia login-loop, there might be several things causing it. Most of the solutions available suggest installing manually from the Nvidia .run files. However, last time I ended up init, it turned out that /etc/X11/xorg.conf was the problem. I had autogenerated this in some futile attempt at making the driver work, which ended up with only Wayland working. After removing the xorg.conf file I was able to run on Xorg again.

Power consumption

To monitor the power consumption run sudo powertop. If docker is using a lot of power it can be shut down using sudo service docker stop followed by running sudo ip link set docker0 down

In order to see what power setting each core is set to, run cat /sys/devices/system/cpu/cpufreq/policy*/energy_performance_preference In order to set them all to i.e performance, run echo performance | sudo tee /sys/devices/system/cpu/cpufreq/policy*/energy_performance_preference Default is balance_performance

Nice-to-have commands

Scale display with Ubuntu 18 on unity xrandr --output eDP-1 --scale 1.25x1.25 --panning 3750x2500

Where the panning is the screen size times the scaling

  • used to remove the invisible mouse boarder - and eDP-1 is the display. To find the current display run xrandr --verbose

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages