Enable Gnome’s Default Auto-Resize Left Dock in Ubuntu

gnome shell

This tutorial is going to show Ubuntu begginers how to enable Gnome’s default left panel (Dock), which has an auto-resize panel height.

In Ubuntu 18.04 and higher, the left panel (called Dock) is by default extended to all the available screen height, which looks just like it does in the previous default Unity desktop.

While the Settings utility only offers options to toggle auto-hide, icon size, and panel position, here’s how to enable auto-resize panel height (or width if panel moved to bottom).

Read more

Ubuntu/GNOME 一些好用的扩展



可在 https://extensions.gnome.org/ 中下载安装.注册该网站,浏览器会提示安装相应扩展。

archlinux可以在aur中搜索gnome-shell-extension的关键字查找(以”插件名+shell“进行搜索,如yaourt weather shell)。


Read more

[Howto] Use wayland with propietary nvidia drivers

Wayland does not play well with proprietary drivers. Currently the biggest issue is that nvidia does currently not support Xwayland properly, so apps that require it get software rendering. This includes most games, which are the most common use case for proprietary nvidia drivers. This is why gnome automatically disables Wayland if you have nvidia.

However, if this does not deter you, you can use Wayland with nvidia drivers. Here is how to do it:

  1. Edit the /etc/gdm/custom.conf file and comment out the line WaylandEnable=false. The correct file will then look something like this:
    # GDM configuration storage
    # Uncomment the line below to force the login screen to use Xorg
    # Uncomment the line below to turn on debugging
  2. Now for the nvidia specific part: edit the file /usr/lib/udev/rules.d/61-gdm.rules and comment out the lines that disable wayland for nvidia. Note that this file gets overwritten by updates. The correct file looks something like this:
    # disable Wayland on Hi1710 chipsets
    ATTR{vendor}=="0x19e5", ATTR{device}=="0x1711", RUN+="/usr/lib/gdm-disable-wayland"
    # disable Wayland when using the proprietary nvidia driver
    #DRIVER=="nvidia", RUN+="/usr/lib/gdm-disable-wayland"
    # disable Wayland if modesetting is disabled
    #IMPORT{cmdline}="nomodeset", RUN+="/usr/lib/gdm-disable-wayland"
  3. Enable modesetting for nvdia drivers. Follow the instructions in the Arch wiki 5:
    • Add the modules nvidia , nvidia_modeset , nvidia_uvm and nvidia_drm to /etc/mkinitcpio.conf and run the command sudo mkinitcpio -P
    • Add the kernel parameter nvidia-drm.modeset=1 to /etc/default/grub and run the command sudo update-grub
  4. Reboot
  5. Profit. Congratulations, you should now be running gnome with wayland despite propietary nvidia drivers!