DDM resurrected

SolydXK is too quiet for you? SolydXK Enthusiast Editions, based on Debian Testing is for you! Here you can find news about Debian Testing and Unstable too, and also tests on SolydXK programs.
The support for SolydXK EE is provided by the community.
User avatar
Schoelje
Site Admin
Posts: 8422
Joined: 26 Jan 2013 19:36
Location: Netherlands
Contact:

DDM resurrected

Postby Schoelje » 05 Sep 2017 11:37

A few days ago I took another look at DDM and decided to give it another go in the hope that I might find a solution to the problems we encountered that made me decide to discontinue DDM .

The DDM script had gotten way too complicated so I decided to start on the code that handled AMD and copy that to a separate script. To keep things as simple as possible I restricted myself to Stretch because SolydXK 8 still has the old DDM in the repository.

I now have an AMD, Nvidia, Broadcom, PAE and an "open" script but no way of actually testing them: I have 3 systems at home, all Intel chip sets. This is what makes developing DDM a real pain sometimes.

I ask you to critically inspect and correct the code of the bash scripts and post back your version here and if you feel up to it to test them on your system. Don't forget to post back the terminal output.

Run the script with the -h argument to see which arguments can be used (Run it the first time with -t to test before installing anything)!

[Edit 1]
I've added an open.sh script. This will revert the installation of a given driver so that the user will use the default drivers again.

[Edit 2]
ddm-pae.sh added.
Attachments
ddm-pae.tar.gz
(1.7 KiB) Downloaded 6 times
ddm-open.tar.gz
(1.76 KiB) Downloaded 6 times
ddm-nvidia.tar.gz
(2.99 KiB) Downloaded 7 times
ddm-broadcom.tar.gz
(2.66 KiB) Downloaded 6 times
ddm-amd.tar.gz
(2.58 KiB) Downloaded 6 times


SolydXK needs you!
Development | Testing | Translations

mhwelsh
Posts: 232
Joined: 15 Apr 2013 18:48

Re: DDM resurrected

Postby mhwelsh » 05 Sep 2017 12:37

This is a Solydk9 machine. It is an 'out of the box' download updated by the system.
The description of the Graphics chip is; AMD/ATI Wrestler Radeon H6320.
The present system works but I have not tried any tricks that the video chip may be able to do.

Carrying out your instructions;

Code: Select all

martin@fitpc3 ~/Downloads $ ./amd.sh -t
[sudo] password for martin:
[AMD] - TEST - Install packages: linux-headers-4.9.0-3-amd64 build-essential firmware-linux-nonfree xserver-xorg-video-amdgpu.
[AMD] - TEST - Purge packages:: fglrx* libgl1-fglrx-glx* amd-opencl-icd.


The purge packages have not been loaded.(dpkg -l and eyeball list.)
The only package to be installed is xserver-xorg-video-amdgpu the remainder are already installed.
I will install this package.

martin welsh

mhwelsh
Posts: 232
Joined: 15 Apr 2013 18:48

Re: DDM resurrected

Postby mhwelsh » 05 Sep 2017 12:46

I'm back.

Code: Select all

martin@fitpc3 ~ $ glxgears
Running synchronized to the vertical refresh.  The framerate should be
approximately the same as the monitor refresh rate.
302 frames in 5.0 seconds = 60.209 FPS
301 frames in 5.0 seconds = 60.003 FPS
301 frames in 5.0 seconds = 60.004 FPS
300 frames in 5.0 seconds = 60.000 FPS
XIO:  fatal IO error 11 (Resource temporarily unavailable) on X server ":0"
      after 4295 requests (4295 known processed) with 0 events remaining.
martin@fitpc3 ~ $ inxi -G
Graphics:  Card: Advanced Micro Devices [AMD/ATI] Wrestler [Radeon HD 6320]
           Display Server: X.Org 1.19.2 drivers: ati,radeon (unloaded: modesetting,fbdev,vesa)
           Resolution: 1920x1080@60.00hz
           GLX Renderer: Gallium 0.4 on AMD PALM (DRM 2.48.0 / 4.9.0-3-amd64, LLVM 3.9.1)
           GLX Version: 3.0 Mesa 13.0.6


Do you want any further checks?

martin welsh

User avatar
ilu
Posts: 1602
Joined: 09 Oct 2013 12:45

Re: DDM and AMD Radeon

Postby ilu » 05 Sep 2017 13:02

I think that R7990 should be on the list - it's GCN2, was called first "New Zealand" and then "Malta" and might use "Tahiti" GPUs, so I'm not sure how that card identifies itself. It can't hurt to include both New Zealand and Malta.

Some of the AMD APUs are missing in that list too, I don't know why.
GCN2 APUs
Temash
Kabini
Liverpool
Durango
Kaveri
Godavari
Mullins
Beema
Carrizo-L

GCN3 APUs
Carrizo
Bristol Ridge
Stoney Ridge

User avatar
Schoelje
Site Admin
Posts: 8422
Joined: 26 Jan 2013 19:36
Location: Netherlands
Contact:

Re: DDM resurrected

Postby Schoelje » 05 Sep 2017 13:21

@mhwelsh
Can you post back /var/log/ddm.log?

Did you install xserver-xorg-video-amdgpu manually or did you install the drivers with the script (that would have been a great help).

The script always reinstalls the packages to make sure everything is installed correctly (even if somebody had messed up his/her system). If the purge command is run and cannot find the packages, nothing will change. It is to make sure those packages are not installed on a Stretch (or later) system.

Have you taken a look at the code?


SolydXK needs you!
Development | Testing | Translations

User avatar
Schoelje
Site Admin
Posts: 8422
Joined: 26 Jan 2013 19:36
Location: Netherlands
Contact:

Re: DDM resurrected

Postby Schoelje » 05 Sep 2017 13:35

@ilu
I moved your post here.

All the names were in the script () except New Zealand and Malta. This is the current list:

Code: Select all

# New supported cards (GCN): https://en.wikipedia.org/wiki/Graphics_Core_Next
SUPPORTEDCARDS='Tonga,Iceland,Topaz,Carrizo,Fiji,Grenada,Antigua,Trinidad,Tobago,Stoney,Bristol,Polaris,Bonaire,Temash,Liverpool,Durango,Kabini,Mullins,Kaveri,Godavari,Beema,Hawaii,Cape Verde,Pitcairn,Tahiti,Oland,Hainan,Raven,Navi,New Zealand,Malta'

Note: Carrizo will both match Carrizo and Carrizo-L. This is the same for some other names.


SolydXK needs you!
Development | Testing | Translations

mhwelsh
Posts: 232
Joined: 15 Apr 2013 18:48

Re: DDM resurrected

Postby mhwelsh » 05 Sep 2017 15:39

I am afraid that there is no /var/log/ddm. lightdm but no ddm.
There is no /var/log/ddm in Solydx either.
The only package not yet installed was the xserver-amdgpu package and this was loaded using synaptic I am afraid.
Lazy sods always take the easy way out!

I did glance at the code but was unable to understand a lot of it.
I did note, after the event, that it should be run as root well the only root action that I took was loading the package from synaptic.

martin welsh

User avatar
Schoelje
Site Admin
Posts: 8422
Joined: 26 Jan 2013 19:36
Location: Netherlands
Contact:

Re: DDM resurrected

Postby Schoelje » 05 Sep 2017 16:35

Thanks anyway!


SolydXK needs you!
Development | Testing | Translations

kurotsugi
Posts: 1920
Joined: 09 Jan 2014 00:17

Re: DDM resurrected

Postby kurotsugi » 06 Sep 2017 03:13

since the script need root/admin permission, this part might need to be moved on top

Code: Select all

# Run this script as root
if [ $UID -ne 0 ]; then
  sudo "$0" "$@"
  echo "failed to run the script. you need a root permission"
  exit $?
fi
since we're directly using a script on the test, adding a warning to the user in case might be usefull too. aside from the reference table, I see no problem on the script.

User avatar
Schoelje
Site Admin
Posts: 8422
Joined: 26 Jan 2013 19:36
Location: Netherlands
Contact:

Re: DDM resurrected

Postby Schoelje » 06 Sep 2017 07:14

Thanks for the feedback.

This code will run itself with sudo to ask the root password. So, the message is not needed here. I've placed the code just below the header but remember that these scripts will be used from a GUI. Normal users won't see any output (although the log file is still created).


SolydXK needs you!
Development | Testing | Translations

User avatar
Schoelje
Site Admin
Posts: 8422
Joined: 26 Jan 2013 19:36
Location: Netherlands
Contact:

Re: DDM resurrected

Postby Schoelje » 08 Sep 2017 14:17

I've added the PAE script to the OP.

I hope that there are some people out there that would want to help testing the scripts.

I've almost finished implementing this in the SolydXK System Settings GUI. I think it will take another week for me to finish and test it (as far as I can). I'll let you know when I've uploaded it to the testing repository.


SolydXK needs you!
Development | Testing | Translations

User avatar
ScottQuier
Posts: 1756
Joined: 18 Jul 2013 15:55
Location: Newport News, VA

Re: DDM resurrected

Postby ScottQuier » 08 Sep 2017 15:04

My daily driver laptop is 64-bit i7 with Intel video - not much there to test with.

I have a couple of older laptops, at least one of which has an NVidia card in it, that I will try to test with this weekend - depending on impact of hurricane Irma on my area.
Scott
Quoting zerozero, "The usage of PPA's in debian-based
systems is risky at best and entails serious compatibility
problems; usually it's the best way to destroy an install"


User avatar
Schoelje
Site Admin
Posts: 8422
Joined: 26 Jan 2013 19:36
Location: Netherlands
Contact:

Re: DDM resurrected

Postby Schoelje » 14 Sep 2017 09:00

I've uploaded the beta version of solydxk-system to testing. It has been merged with DDM using the scripts in the OP. Additionally it also supports adding (external) drives to fstab.

Also, I've uploaded solydxk-welcome to testing which now uses solydxk-system to provide driver installation.

I'm uploading nighlies with these packages now.

Let me know how it goes.


SolydXK needs you!
Development | Testing | Translations

User avatar
Schoelje
Site Admin
Posts: 8422
Joined: 26 Jan 2013 19:36
Location: Netherlands
Contact:

Re: DDM resurrected

Postby Schoelje » 29 Sep 2017 10:19

I'm going to upload the packages to the production repository but I'll leave this topic open in case anybody would like to report an issue with this part of solydxk-system.


SolydXK needs you!
Development | Testing | Translations

User avatar
ilu
Posts: 1602
Joined: 09 Oct 2013 12:45

Re: DDM resurrected

Postby ilu » 11 Oct 2017 17:59

I can confirm that both my AMD cards (Cape Verde and Tonga) were recognized correctly, I did not install the drivers though because the free drivers seem to work ok.
I really like what you did with the solydxk-system app.
Just a minor issue: On one maschine the icons in the lower right corner look really weird. Probably due to a theme change - symbols were changed to oxygen. But that shouldn't effect in-app-icons? Aren't those kind of hardcoded? Anyway, the show-logs icon is the "do-not-park-here" icon which is not really fitting and the other one looks like a really tiny life-belt(?) The "life-belt" is also missing a tooltip.
Also german tranlation is missing :oops: - I'm having trouble to log into transifex for some time now. I'll get to it, I promise.

User avatar
Schoelje
Site Admin
Posts: 8422
Joined: 26 Jan 2013 19:36
Location: Netherlands
Contact:

Re: DDM resurrected

Postby Schoelje » 12 Oct 2017 04:16

The icons are not hard coded but theme based. That's for all the applications I made but in this case perhaps I'll hard code them. I'll look into it.


SolydXK needs you!
Development | Testing | Translations

User avatar
Schoelje
Site Admin
Posts: 8422
Joined: 26 Jan 2013 19:36
Location: Netherlands
Contact:

Re: DDM resurrected

Postby Schoelje » 12 Oct 2017 15:02

Closing this topic now that DDM has been integrated in SolydXK System Settings:
viewtopic.php?f=78&t=7055


SolydXK needs you!
Development | Testing | Translations


Return to “Testing zone”

Who is online

Users browsing this forum: No registered users and 1 guest