[Solved] Odroid C1 - No X (Mali DRM issue)

This forum is for topics dealing with problems with software specifically in the ARMv7h repo.

[Solved] Odroid C1 - No X (Mali DRM issue)

Postby Screamy » Fri Jan 16, 2015 1:30 pm

I'm not able to start an X session on my Odroid C1. I have the following software installed:

video driver: xf86-video-odroid-c1
X packages: xorg-server xorg-server-util xorg-xinit
Desktop: xfce4

I also have .xinitrc in my /home/screamy, with 'exec startxfce4'.

Non-privileged user 'screamy' is also in the 'video' group.

When I issue a 'startx', it errors out and I see this in /var/log/Xorg.0.log:

...
[ 171.240] (**) MALI(0): Don't use umplock across processes
[ 171.312] (EE) MALI(0): [mali_drm_open_master:1326] Error: mali_drm_open_master DRM OPEN (fd: 0xb)

[ 171.313] (EE) MALI(0): [mali_drm_open_master:1337] Error: mali_drm_open_master DRM failed to interface version

[ 171.313] (EE) MALI(0): [MaliPreInit:1453] Error: Failed to be master of DRM!
[ 171.313] (II) UnloadModule: "mali"
[ 171.313] (EE) Screen(s) found, but none have a usable configuration.

...


The errors clearly point to this being a DRM-related error, but despite a lot of judicious Googling, I haven't yet found a solution.

Has anyone else run into this problem?
Last edited by Screamy on Tue Jan 20, 2015 12:41 pm, edited 1 time in total.
Screamy
 
Posts: 20
Joined: Fri Jan 16, 2015 1:19 pm

Re: Odroid C1 - No X (Mali DRM issue)

Postby Screamy » Fri Jan 16, 2015 2:16 pm

Found a solution:

Uninstalled the default xf86-video-odroid-c1 video driver.

Installed the xf86-video-fbturbo-git driver.

X now works, but there are graphical issue in xfce. The background of all dialogs/panels/windows is black and any text is really fuzzy and hard to read. I tried changing themes, etc, but no luck. The same problem occurs with lxde desktop as well.

Guess I'll have to wait on an updated Mali driver...
Screamy
 
Posts: 20
Joined: Fri Jan 16, 2015 1:19 pm

Re: Odroid C1 - No X (Mali DRM issue)

Postby dtruesdale » Fri Jan 16, 2015 8:33 pm

I think there is a solution for this on the Odroid forums. I will look and see if I can locate it for ya.
dtruesdale
 
Posts: 10
Joined: Fri Jan 16, 2015 12:53 am

Re: Odroid C1 - No X (Mali DRM issue)

Postby Screamy » Sat Jan 17, 2015 3:17 pm

A Ubuntu user over on the Odroid forums had the same 'black background' issue as I did, where it was a driver issue:

http://forum.odroid.com/viewtopic.php?f=117&t=7745

...
Anyway, as I said, X kind of works, but there are two problems:
* screen background is always black instead of having normal wallpaper (even in apps, like lxterminal)
* screen locks and it doesn't ever accept my password (It seems that I can put in any value and the screen briefly shows the outline of my open windows and then goes back to lock screen)
Screamy
 
Posts: 20
Joined: Fri Jan 16, 2015 1:19 pm

Re: Odroid C1 - No X (Mali DRM issue)

Postby Screamy » Sat Jan 17, 2015 4:12 pm

Just to go the last mile, I held my nose and loaded the Ubuntu 14.04.1 image from Odroid and it works flawlessly.

I dumped the /etc/X11/xorg.conf config from Ubuntu and compared it to the Arch's /etc/X11/xorg.conf.d/99-Mali conf file and it's identical. So it doesn't appear to be a config issue.
Screamy
 
Posts: 20
Joined: Fri Jan 16, 2015 1:19 pm

Re: Odroid C1 - No X (Mali DRM issue)

Postby f4st » Sun Jan 18, 2015 3:47 pm

I can confirm this. The odroid-c1 driver just does not work. The fbdev and fbturbo drivers do work, although with black background almost everywhere.

I really don't know what could be causing this.

Edit: Correction. I just installed and enabled lxdm and it seems to have somehow fixed the issue, although it seems like you have to try logging in twice to make it work. Weird.
f4st
 
Posts: 1
Joined: Sun Jan 18, 2015 3:43 pm

Re: Odroid C1 - No X (Mali DRM issue)

Postby kmihelich » Sun Jan 18, 2015 4:19 pm

You need to use a DM (lxdm, kdm, etc.) or set up Xwrapper.config and use xinit. This is in the wiki.
https://wiki.archlinux.org/index.php/Xo ... 28v1.16.29
Arch Linux ARM exists and continues to grow through community support, please donate today!
kmihelich
Developer
 
Posts: 1130
Joined: Tue Jul 20, 2010 6:55 am
Location: aka leming #archlinux-arm

Re: Odroid C1 - No X (Mali DRM issue)

Postby grmume » Mon Jan 19, 2015 3:12 pm

I'm experiencing the same error. Did someone manage to get X.org running with the xf86-video-odroid-c1 driver? I'm using lxde with lxdm, so using a DM did not solve that problem.
So far the only thing that helped was installing the xf86-video-fbturbo-git driver. Sadly that resulted in the graphical issues you described. If you switch from 32bits per pixel to 24 bits per pixel everything looks normal but i think you run into problems with transparency (i haven't tested this though).
grmume
 
Posts: 2
Joined: Mon Jan 19, 2015 2:56 pm

Re: Odroid C1 - No X (Mali DRM issue)

Postby pepedog » Mon Jan 19, 2015 5:08 pm

It's assumed you are not running X as root
Add this to bottom of ~/.xinitrc
Code: Select all
exec dbus-launch startlxde

You could now start lxde logged in as alarm by running startx
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: Odroid C1 - No X (Mali DRM issue)

Postby grmume » Mon Jan 19, 2015 7:39 pm

Thanks for the replies. I managed to get lxde running now. I did run X as root, i installed lxdm but i did not enable the lxdm service at bootup (me=idiot :/). So if anyone is experiencing the same problems run:
systemctl enable lxdm
grmume
 
Posts: 2
Joined: Mon Jan 19, 2015 2:56 pm

Next

Return to ARMv7h

Who is online

Users browsing this forum: No registered users and 3 guests