phase
Posts: 54
Joined: Thu Jun 30, 2016 3:05 am

rpi-4 no hdmi ubuntu 19.10

Tue Nov 05, 2019 1:48 am

i have no hdmi or onboard audio..the onboard may well be that i don't have a 4 pole phono plug...hmm..however i have tried to get audio over hdmi with my limited code base...adding to this i am running 64 bit server image with Ubuntu mate desktop..any help would be much app...

also i cannot seem to fix the 1080 p from over scanning it`s fine in 1360x768 but when i try and set it to do 1920x1080 i cannot see the bottom or the right hand side of the desktop...

also it just threw down a new kernel update and it failed to load some modules...i guess that will come to be fixed with the waiting...

Linux ubuntu 5.3.0-1011-raspi2 #12-Ubuntu SMP Fri Nov 1 09:07:06 UTC 2019 aarch64 aarch64 aarch64 GNU/Linux

on the good side of things it is running @ 2000Mhz and with the extra depth i must say i am impressed to a large capacity...

i do have an usb audio extractor so all is not lost..

also for the guys who cannot get the usb ports to work here is the fix..

in the usercfg.txt file...add this into the page u have to limit the ram to 3 gig...

Code: Select all

total_mem=3072

you can enable zram if you like it utilizes the remaining free memory

Code: Select all

apt install zram-config

Code: Select all

reboot

feelslikeautumn
Posts: 315
Joined: Wed Aug 09, 2017 9:51 pm

Re: rpi-4 no hdmi ubuntu 19.10

Tue Nov 05, 2019 10:07 am

I know nothing bout the pi4, but have you tried adding

Code: Select all

# Enable audio (loads snd_bcm2835)
dtparam=audio=on
to config.txt?

phase
Posts: 54
Joined: Thu Jun 30, 2016 3:05 am

Re: rpi-4 no hdmi ubuntu 19.10

Tue Nov 05, 2019 12:35 pm

yes i have tried the code but not in that file thx i will try it..

szvl
Posts: 1
Joined: Wed Nov 06, 2019 8:20 am

Re: rpi-4 no hdmi ubuntu 19.10

Wed Nov 06, 2019 8:26 am

feelslikeautumn wrote:
Tue Nov 05, 2019 10:07 am
I know nothing bout the pi4, but have you tried adding

Code: Select all

# Enable audio (loads snd_bcm2835)
dtparam=audio=on
to config.txt?
Thank you, I added this config parameter to the /boot/firmware/usercfg.txt file and it solved the hdmi audio problem on my system (raspberry 4, ubuntu 19.10 64bit).

phase
Posts: 54
Joined: Thu Jun 30, 2016 3:05 am

Re: rpi-4 no hdmi ubuntu 19.10

Thu Nov 07, 2019 8:23 am

ok i has to play with the settings in the audio control manager
now i have hdmi sound ..also the code that was added must of helped...thank you...phase...

Aphysician
Posts: 1
Joined: Sun Mar 22, 2020 2:53 am

Re: rpi-4 no hdmi ubuntu 19.10

Sun Mar 22, 2020 2:58 am

I have the same issue after installing Ubuntu 18.4 LTS. I am new user to Linux. Was able to get to the usercfg file. However can’t seem to edit it. Could you plz kindly mention how do I add the phrase in that file. Thank you in advance.

roblob
Posts: 1
Joined: Wed Apr 01, 2020 11:26 pm

Re: rpi-4 no hdmi ubuntu 19.10

Wed Apr 01, 2020 11:30 pm

Code: Select all

sudo nano /boot/firmware/usercfg.txt     
Nano is a command line text editor. Add the code you need then ctrl-o then enter to save the file then ctrl-x to exit.

User avatar
waveform80
Posts: 359
Joined: Mon Sep 23, 2013 1:28 pm
Location: Manchester, UK
Contact: Website Twitter

Re: rpi-4 no hdmi ubuntu 19.10

Thu Apr 02, 2020 10:45 am

Aphysician wrote:
Sun Mar 22, 2020 2:58 am
I have the same issue after installing Ubuntu 18.4 LTS. I am new user to Linux. Was able to get to the usercfg file. However can’t seem to edit it. Could you plz kindly mention how do I add the phrase in that file. Thank you in advance.
As roblob's already suggested, nano is probably the easiest editor you can use to edit the file from the command line under Linux.

It's also worth noting though, that usercfg.txt (and syscfg, config.txt, etc.) are all fairly straight-forward text files on the boot partition of the SD card. As this is a FAT format partition it should be accessible from pretty much any machine so, if you prefer, you can shut down your Pi, stick the micro-SD card in any Windows, Mac OS X, or Linux machine (with an appropriate slot, obviously) and edit that file in pretty much any text editor you like (even Notepad supports UNIX line endings as of Windows 10!).

Dave.
Author of / contributor to a few pi related things (picamera, Sense HAT emulator, gpio-zero, piwheels, etc.), and currently a software engineer at Canonical responsible for Ubuntu Server and Core on the Raspberry Pi.

eloy86
Posts: 1
Joined: Wed Apr 22, 2020 11:14 am

Re: rpi-4 no hdmi ubuntu 19.10

Thu Apr 23, 2020 12:21 pm

feelslikeautumn wrote:
Tue Nov 05, 2019 10:07 am
I know nothing bout the pi4, but have you tried adding

Code: Select all

# Enable audio (loads snd_bcm2835)
dtparam=audio=on
to config.txt?
I tried it and it works for me. Thank you so much! But I have an another issue. I installed Ubuntu 19.10 on Raspberry Pi 4 and I used my old PC Monitor. There is no HDMI port. Because of this, I use convertor HDMI to VGA. (in this link: https://tr.aliexpress.com/item/4000390382123.html )

In Raspian OS, I can switch and select easily sound output HDMI or Analog etc. Besides, It works for 4+1 sound systems in Raspian. In Ubuntu , I have a problem "dummy output issue" and this problem solved by yours code.(Thank you again! :D) But Now, I can't plugged directly my speakers into Raspberry Pi 4. It failed. I must to plugged my speakers on converters audio output and only works 2 speakers. How can I fix this? May you help me, please?

P.S. Sorry for my basic English. I hope I was able to express my problem properly.

User avatar
waveform80
Posts: 359
Joined: Mon Sep 23, 2013 1:28 pm
Location: Manchester, UK
Contact: Website Twitter

Re: rpi-4 no hdmi ubuntu 19.10

Thu Apr 30, 2020 8:49 pm

eloy86 wrote:
Thu Apr 23, 2020 12:21 pm
feelslikeautumn wrote:
Tue Nov 05, 2019 10:07 am
I know nothing bout the pi4, but have you tried adding

Code: Select all

# Enable audio (loads snd_bcm2835)
dtparam=audio=on
to config.txt?
I tried it and it works for me. Thank you so much! But I have an another issue. I installed Ubuntu 19.10 on Raspberry Pi 4 and I used my old PC Monitor. There is no HDMI port. Because of this, I use convertor HDMI to VGA. (in this link: https://tr.aliexpress.com/item/4000390382123.html )

In Raspian OS, I can switch and select easily sound output HDMI or Analog etc. Besides, It works for 4+1 sound systems in Raspian. In Ubuntu , I have a problem "dummy output issue" and this problem solved by yours code.(Thank you again! :D) But Now, I can't plugged directly my speakers into Raspberry Pi 4. It failed. I must to plugged my speakers on converters audio output and only works 2 speakers. How can I fix this? May you help me, please?

P.S. Sorry for my basic English. I hope I was able to express my problem properly.
If you install the alsa-utils package you can use the amixer command to select the head-phone jack output on the Pi:

Code: Select all

$ sudo apt install alsa-utils
...
$ amixer cset numid=3 1
The default value is 0 (meaning "auto"), if I remember correctly. You can force it to the HDMI output with:

Code: Select all

$ amixer cset numid=3 2
More details on this page.

Good luck!

Dave.
Author of / contributor to a few pi related things (picamera, Sense HAT emulator, gpio-zero, piwheels, etc.), and currently a software engineer at Canonical responsible for Ubuntu Server and Core on the Raspberry Pi.

Return to “Ubuntu”