7

I have a Samsung laptop with a Radeon graphics chip.

Live-Images and graphical installation have always worked on this laptop with the proper resolution of 1366x768. However, after Ubuntu had been installed, I ran into the black screen problem which so far, I solved by setting nomodeset temporarily during the first boot which gave me a resolution of 1024x768. Having booted like that, I would then install the fglrx driver, reboot and enjoy my Ubuntu with the proper resolution.

Since I can't use the fglrx driver in Ubuntu 16.04 I am stuck with either a black screen (without using nomodeset) or a distorted display due to the wrong resolution of 1024x768. I tried setting the resolution manually with xrandr but I think since I have to use nomodeset there's no way that I can do that.

Is there any way to fix this? I know that I could stick with Ubuntu 15.10 but I would really prefer an LTS version.

2
  • Have you tried the amdgpu driver? Apr 23, 2016 at 11:02
  • I ran sudo apt-get install xserver-xorg-video-amdgpu libdrm-amdgpu1. Both packages were already installed...
    – user533961
    Apr 23, 2016 at 12:54

4 Answers 4

6

I have 4 laptops upgraded with 16.04, and they all behave a little different with what GRUB accepts. The preferred way should be to set in /etc/default/grub

GRUB_GFXMODE=1920x1080x32

with the part after the equal sign the allowed resolutions for your device. Use either c at the GRUB prompt and enter vbeinfo, or run sudo hwinfo --framebuffer from the console in linux to get a list of accepted modes.

Sometimes, even if the screen is a 16:10 1920x1200 or similar, only a resolution of 1600x1200 is accepted, so watch out for this. This is the setting for GRUB. To have it carry over to the booting system, use a line

GRUB_GFXPAYLOAD_LINUX=keep 

after that.

For some devices, this (preferred) option has no effect. But for my two problem children, commenting out the GRUB_GFXMODE line, keeping the GRUB_GFXPAYLOAD_LINUX line and using the deprecated option vga= with nomodeset was sufficient:

GRUB_CMDLINE_LINUX_DEFAULT="nomodeset vga=0x35a quiet splash"

sets the tty to 1600x1200 with 24 bit. Use the hex value sudo hwinfo --framebuffer gives you.

2
  • Sadly, no luck so far... I tried GRUB_GFXMODE=800x600x32 just to see that GRUB's resolution changed as expected. Still had to use nomodeset to boot to login screen. Also when adding GRUB_GFXPAYLOAD_LINUX. The resolution in Ubuntu changed, though. sudo hwinfo --framebuffer only gives me resolutions up to 1024x768. In GRUB vbeinfo outputs lots more but if I choose one beyond 1024x768 it doesn't have any effect. Maybe because the height is greater than 768 in all of these options...
    – user533961
    Apr 23, 2016 at 13:04
  • 1
    Here we are at 2018 and adding GRUB_GFXMODE... seems to have fixed my ability to boot into ubuntu. Thanks!
    – cirrusio
    Dec 6, 2018 at 17:48
3

I had the same problem and was finding nomodeset annoying not just because of the screen resolution, but because it really made compiz suck cpu. So I went back to not using nomodeset because I'd found that if I waited 5 minutes after booting, the screen would come on.

Anyway, just now when I booted, it went black after the grub screen as usual, but the screen turned on just before the login screen appeared. I remembered I took an update this morning that included Ubuntu base, so I'm speculating that the problem was addressed. It isn't fully fixed, but is 95% better, so give it a go if you haven't taken this update yet.

3
  • This seems to have fixed it! I reinstalled 16.04 to try it out. Installed the updates after booting with nomodeset and then I waited about 20 minutes without the screen coming on. Nothing. Today, installed the new updates. On the first reboot, the display was black but not powered off (which had been the case before). I just moved the mouse and there it was: My login screen with 1366x768. On the second reboot, the login screen showed up directly.
    – user533961
    Apr 27, 2016 at 19:15
  • Great! I have to say that since I posted that, the behavior I've experienced has been a little erratic, with the screen sometimes coming on immediately and sometimes not. Hopefully the driver will continue to be improved, but in the meantime I can live with it and function without resorting to nomodeset. Cheers. Apr 30, 2016 at 2:59
  • Well... A little erratic seems to be the right choice of words... After another update, the same problems reappeared and I'm having the same problems again. I'll give it another go to see whether it changed again or not. But I think I'll downgrade to 15.10 for now to have an OS I can actually work with...
    – user533961
    May 1, 2016 at 10:22
3

I've had the exact same problem. Blank screen on boot-time, that I've partially solved withe nomodeset. But after that, I could not use my external HDMI monitor.

So I've finally solved it by leaving GRUB_CMDLINE_LINUX_DEFAULT="" like that. It seems to me (I'm guessing) that removing the splash option does not force to load any video requirements, and hence once the boot is completed, and because I'm not using nomodeset, external monitor can be detected. But again, just a guess...

I'm using ubuntu 20.04.

OS: Ubuntu 20.04 LTS x86_64 
Host: 20N3S01B00 ThinkPad T490 
Kernel: 5.4.0-29-generic 
Uptime: 7 mins 
Packages: 1735 (dpkg), 6 (snap) 
Shell: bash 5.0.16 
Resolution: 1366x768, 1440x900 
DE: GNOME 
WM: Mutter 
WM Theme: Adwaita 
Theme: Yaru [GTK2/3] 
Icons: Yaru [GTK2/3] 
Terminal: gnome-terminal 
CPU: Intel i7-8565U (8) @ 4.600GHz 
GPU: Intel UHD Graphics 620 
Memory: 2461MiB / 7617MiB 
2
  • 1
    This worked for me, @Lucas. Had to SSH into my 20.4 install and edit grub as you noted... now I can get to login screen and use multiple monitors without issue.
    – Kevin
    May 22, 2020 at 18:03
  • On my GTX 1060 it worked, but not on GT 750
    – PPP
    Jun 10, 2020 at 1:49
0

There is one more method which is very simple you can try to change screen resolution, or can change font size, icon size in desktop

  • First, download gnome tweaks from ubuntu software, this will allow you to do some changes regarding font size, font family, icon resolution, screen resolution and many more
  • Open Gnome tweaks
  • Go to Fonts
  • In the end there is option Scaling Factor you can decrease it as it will increase your resolution (I decreased it upto 0.80 for better result).

For icon size in desktop

  • you can go to Extensions
  • and there click in setting icon on Desktop icons option
  • these you will see an option for size for desktop icon you can change it to small if it is standard or large

If the icon in desktop is still looking large then run command in terminal

  • sudo gedit /usr/share/gnome-shell/extensions/desktop-icons@csoriano/prefs.js

  • Enter password to open file

  • In file search area containing lines as follows

    const ICON_SIZE = { 'small': 40, 'standard': 64, 'large': 96 }; const ICON_WIDTH = { 'small': 90, 'standard': 116, 'large': 116 }; const ICON_HEIGHT = { 'small': 80, 'standard': 102, 'large': 134 };

You can reduce their value by keeping in mind that:

  • ICON_SIZE : changes the icon image size
  • ICON_WIDTH : changes whole width including the padding given around it
  • ICON_HEIGHT : changes whole height including the padding given around it

You must log in to answer this question.