You are not logged in.

#1 2015-08-15 21:29:54

bobberb
Member
Registered: 2013-04-03
Posts: 16

startx works - Xorg :0 -configure fails

Dear Archers,

I recently decided to try getting AMD Catalyst and added a full wipe to that list of to-dos. 

With a fresh install I wanted to get Xorg running and right out of the box `startx` allows me to run Xorg.  However, to my understanding, it's best to have a set xorg.conf and not rely on autodetect.  I run Xorg :0 -configure and it tells me to test the new file with X -config(uration) /root/xorg.conf/new.  I'm greeted with a black screen and have to reboot. 

How do I "export" the settings it reaches with a simple startx?  I know that my followup with aticonfigure will rely on these settings and it too will create a black-screen situation so I believe if I can mimic whatever startx is doing I can move on to my full AMD drivers and not whatever it is using (mesa)

Thank you.

Offline

#2 2015-08-15 21:32:57

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: startx works - Xorg :0 -configure fails

Are you running X as root?
Have you tried with a user w/o xorg.conf?

Offline

#3 2015-08-15 21:42:22

2ManyDogs
Forum Fellow
Registered: 2012-01-15
Posts: 4,645

Re: startx works - Xorg :0 -configure fails

bobberb wrote:

However, to my understanding, it's best to have a set xorg.conf and not rely on autodetect.

Why do you think this?

ArchWiki wrote:

Note: Arch supplies default configuration files in /usr/share/X11/xorg.conf.d, and no extra configuration is necessary for most setups.

Offline

#4 2015-08-15 21:54:21

bobberb
Member
Registered: 2013-04-03
Posts: 16

Re: startx works - Xorg :0 -configure fails

karol wrote:

Are you running X as root?
Have you tried with a user w/o xorg.conf?

I am indeed running as root.  startx runs only as root.


2ManyDogs wrote:

Why do you think this?

I draw from the AMD Catalyst wiki:

Note: To adhere to the new config location use # aticonfig [...] --output to adapt the Device section to /etc/X11/xorg.conf.d/20-radeon.conf. The drawback is that many aticonfig options rely on an xorg.conf, and will be unavailable.

Offline

#5 2015-08-15 21:56:05

bobberb
Member
Registered: 2013-04-03
Posts: 16

Re: startx works - Xorg :0 -configure fails

I think my question can be summarized as:

How can I best see the options startx runs with so that I may test it with by explicitly running X -config /xorg.conf

Offline

#6 2015-08-15 21:56:11

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: startx works - Xorg :0 -configure fails

What errors do you get when running as a user?
What's the output of

uname -a


Edit: Not sure what you mean. startx reads xinitrc, you can use e.g. ps or htop to see what command is being run by xinit.

Last edited by karol (2015-08-15 21:57:48)

Offline

#7 2015-08-15 22:13:53

bobberb
Member
Registered: 2013-04-03
Posts: 16

Re: startx works - Xorg :0 -configure fails

Karol,

Good call on the uname, I'm so used to using gdm I forgot startx is can indeed from from a user.  The output of uname is normal Linux 4.14 x86_64, I am currently reaching you from X but I have no idea how to copy stuff.

Offline

#8 2015-08-15 22:24:14

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: startx works - Xorg :0 -configure fails

Where are we now: is everything working OK?

As for copying output w/o a graphical web browser (how are you posting on the forum then?), see https://wiki.archlinux.org/index.php/Li … in_clients

Offline

#9 2015-08-15 22:26:38

bobberb
Member
Registered: 2013-04-03
Posts: 16

Re: startx works - Xorg :0 -configure fails

Update:

My xorg.conf.d is empty sad.  It seems everything is on autodetect, however a different autodetect happens during Xorg -configure!

Xorg runs as Xorg.bin -nolisten tcp :0 vt1 -auth /temp/serverauthXXXXXXXX, pretty generic!

I have no idea how to proceed from here, should I bring this to the ATI subforum?

Offline

#10 2015-08-15 22:29:12

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: startx works - Xorg :0 -configure fails

I'm confused. What exactly is the problem?

Offline

#11 2015-08-15 22:31:43

bobberb
Member
Registered: 2013-04-03
Posts: 16

Re: startx works - Xorg :0 -configure fails

Situation:

startx works, it calls xinit and Xorg

I have to move to ATI graphics at one point, it autogenerates an xorg.conf but all I get is a black screen when I run it. 

I am now thinking it is because xinit is no longer invoked!!!  New question:  How to I make sure xterm pops up after calling an xorg.conf?

Offline

#12 2015-08-15 22:35:09

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: startx works - Xorg :0 -configure fails

What graphics are you using now?
Please read the wiki wrt autostarting via ~/.xinitrc: https://wiki.archlinux.org/index.php/Xinitrc

If you have problems with GDM, see https://wiki.archlinux.org/index.php/GDM

Offline

#13 2015-08-15 22:39:14

bobberb
Member
Registered: 2013-04-03
Posts: 16

Re: startx works - Xorg :0 -configure fails

Karol,

I've reached you now from inside gnome after adding an exec gnome-session to my ~/.xinitrc.  I think this small oversight is what was tripping me up. I will report back in a second after I shift to AMD.  Currently I have no set anything so I assume I am using xf86-video-intel.

Last edited by bobberb (2015-08-15 22:39:28)

Offline

#14 2015-08-15 22:41:27

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: startx works - Xorg :0 -configure fails

Intel? If you do not have an Intel graphics card this can't work.
Post what graphics hardware you have and what graphics drivers have you installed.

Offline

#15 2015-08-15 22:43:10

bobberb
Member
Registered: 2013-04-03
Posts: 16

Re: startx works - Xorg :0 -configure fails

04:00.0 Display controller: Advanced Micro Devices, Inc. [AMD/ATI] Opal XT [Radeon R7 M265]
        Subsystem: Dell Device 0695
        Kernel modules: radeon

00:02.0 VGA compatible controller: Intel Corporation Broadwell-U Integrated Graphics (rev 09)

This is a laptop with both, I am trying to achieve switchable graphics.  I honestly believe that my failed recollection of .xinitrc was the stumbling block.

Offline

#16 2015-08-15 23:49:36

bobberb
Member
Registered: 2013-04-03
Posts: 16

Re: startx works - Xorg :0 -configure fails

I'm going to put this issue on the back-burner.  I need to take time and reformat again to get myself back to the black screen issue I started with, something I tinkered with since then has blocked this first issue.  Thank you for all your help, I will not forget .xinitrc on my next go around.

Offline

#17 2015-08-16 09:23:26

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: startx works - Xorg :0 -configure fails

bobberb wrote:

...This is a laptop with both, I am trying to achieve switchable graphics...

It would have been nice to know that to start with.

https://wiki.archlinux.org/index.php/Bumblebee


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#18 2015-08-16 11:07:00

DarkCerberus
Banned
From: Holsworthy, Devon
Registered: 2011-12-31
Posts: 252

Re: startx works - Xorg :0 -configure fails

From what I've heard /etc/X11/xorg.conf.d/ was depreciated in an earlier version of Xorg - if using a ATI Card generate the xorg.conf file with the following

aticonfig --initial

This will generate the xorg.conf properly and you'll have to manually remove the ATI configuration in /etc/X11/xorg.conf.d since it doesn't work....

Last edited by DarkCerberus (2015-08-16 11:08:13)


Our enemies are your enemies, Nick. Disorder, war. It's just a matter of time before a dirty bomb goes off in Moscow, or an EMP fries Chicago.  ---  Alexander Pierce, Captain America: Winter Soldier
Access Denied! De-cryption failed, override denied all files sealed! --- Triskelion, Shield OS
-----
How to ask questions the smart way

Offline

#19 2015-08-16 11:49:55

2ManyDogs
Forum Fellow
Registered: 2012-01-15
Posts: 4,645

Re: startx works - Xorg :0 -configure fails

slithery wrote:
bobberb wrote:

...This is a laptop with both, I am trying to achieve switchable graphics...

It would have been nice to know that to start with.

https://wiki.archlinux.org/index.php/Bumblebee

AFAIK, Bumblebee works with Optimus laptops which have intel and nvdia graphics. The OP has intel and amd graphics, so I don't think bumblebee applies here.

Offline

#20 2015-08-17 11:39:41

Lone_Wolf
Forum Moderator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,966

Re: startx works - Xorg :0 -configure fails

If OP was using radeon opensource driver, PRIME would be the way to go.

For intel + AMD Catalyst (proprietary) , Catalyst provides commands to switch between integrated and dedicated gpu .
Check Catalyst wiki page . (latest version of catalyst packages has powerxpress support built-in, you can ignore references to catalyst-total-pxp ).


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

Board footer

Powered by FluxBB