CNCzone.com-The Largest Machinist Community on the net!



Home Page Mark Forums Read Today's Posts My Replies Classifieds Reviews Photo Gallery Web Links Share Files Advertise With Us Ad List
Go Back   CNCzone.com-The Largest Machinist Community on the net! > Machine Controllers Software and Solutions > LinuxCNC (formerly EMC2)


LinuxCNC (formerly EMC2) Discuss LinuxCNC (formerly EMC2) Controlers here!


This forum is sponsored by:

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Ban this user!
Old 12-20-2011, 02:29 PM
 
Join Date: Oct 2010
Location: United States
Posts: 22
dmiller47591 is on a distinguished road
How to create an xorg.conf file for editing

I'm pretty new to Linux, so this one has me stumped for the moment.

I'm running a Dell optiplex with Ubuntu 10.04. This machine has the Intel 82845g/gl(brookdale-g)/ge chipset graphics hardware. There are known problems with the intel 845 chipset and Ubuntu 10.04. I get some random X crashes while multitasking with several browser windows open. Ends up in a screen flashing white and black bars on the top half. Have to reboot every time. The wiki at https://wiki.ubuntu.com/X/Bugs/Lucidi8xxFreezes has some fixes for this. I can invoke this X crash reliably by running screen saver "Antspotlight".
1. Ubuntu 10.04 does not come with an xorg.conf file. I must make one. The wiki says that the file is in /etc/X11/ but all the other x configs are in /usr/lib/X11/xorg.conf.d. Got this info at 10.04 - Where is /etc/X11/xorg.conf? - Ask Ubuntu - Stack Exchange
Which place do I put xorg.conf once I've created and edited it?

2. When I try to create xorg.conf in a terminal with the command sudo Xorg -configure i get a fatal error. Makes me thing that maybe it should be done in a terminal WITHOUT Ubuntu running in the background. Error reads as so:

Fatal server error:

Server is already active for display 0
If this server is no longer running, remove /tmp/.X0-lock
and start again.


Please consult the The X.Org Foundation support
at X.Org Wiki - Home
for help.

ddxSigGiveUp: Closing log

I'm doing something wrong here. How can a linux newb fix this intel 8xx bug?
Reply With Quote

  #2   Ban this user!
Old 12-21-2011, 01:34 AM
 
Join Date: Jan 2007
Location: UK
Posts: 97
cncbasher is on a distinguished road

Basically even though xorg.conf does not exist, it will be read if created.

The easiest way to create it and get a basic configuration
is to start the computer into a text log in screen

IE
1. Hold down shift at boot.
2. Select recovery mode for your kernel build.
3. Select Root command prompt (can select with networking if needed)
4. Switch to runlevel 3 with the command “telinit 3″

Then run
xorg -configure to generate /etc/X11/xorg.conf on detected hardware and settings.

Re-boot and try it in full system graphics mode.

That in itself may do the trick, if not gives a good base to start from.
Reply With Quote

  #3   Ban this user!
Old 12-21-2011, 01:21 PM
 
Join Date: Oct 2010
Location: United States
Posts: 22
dmiller47591 is on a distinguished road
Solved

Thanks for your reply. Something wasn't going right when I would try to run command: Xorg -configure. This time I kept getting a fatal error saying that it could not move the "old log file". This drove me to a sort of desperation and I tried something that I didn't think would work, but it did.

1. Created a gedit text file, saved as Xorg.conf to desktop. Made sure to check that it's saved with read permissions in the save as dialog box. This file had the section needed to disable DRI. Copied and pasted straight from the wiki:

Section "Device"
Identifier "Configured Video Device"
Driver "intel"
Option "DRI" "off"
EndSection

2. I copy pasted this file into my documents to be a target for "mv" (move command)

3. Opened a terminal window and commanded the following:

sudo mv /home/darren/Documents/xorg.conf /etc/X11

4. Not knowing if the file should just be in "/etc/X11" or with the other xconfig snippets in "/usr/lib/X11/xorg.conf.d" I opted for a bit of redundancy. Copied and pasted the file Xorg.conf from desktop to my documents again. Then in terminal I commanded the following:

sudo mv /home/darren/Documents/xorg.conf /usr/lib/X11/xorg.conf.d

5. Restart machine. Ran antspotlight screen saver. All good!

**Obviously for anybody who might use this, My name is Darren, my Ubunty machine is named darren. Thus the name in the file path for the move commands in terminal. Adjust that section of the file path for your system.

**All copy and paste of the Xorg.conf file was done in Ubuntu (right click mouse over icon style). Only the 2 "mv" commands were run in terminal, and while Ubuntu was running in the background. The need for this was to use the "sudo" command to become super user and move files into their directory. In the ubuntu file manager UI, you do not have permission to add files to those folders.


This was all done on a Dell Optiplex GX260, P4 processor, with the above mentioned graphics, and Ubuntu 10.04. With SMI disabled, and now DRI disabled.

I ran glxgears, and a minimized antspotlight screen saver and Latency test all night after this fix. After 8 hours, I now have a max jitter of 13616(ns). And no crashes whatsoever. Can't complain about that. All thanks to the CNCZone community, Linux community, and LinuxCNC community!
Reply With Quote

Reply




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem- What can I use to create a step & direction file? Sojourner Coding 1 07-04-2011 09:08 AM
Editing FANUC GPP File almo0797 SolidCam 6 07-13-2009 05:31 PM
How do I create an .INC file in Surfcam? MetLHead Surfcam 6 02-21-2009 04:23 PM
create text file in macro Osmanselim Parametric Programing 3 10-17-2008 02:25 AM
How do I create a DFX file Blacksunshine DIY-CNC Router Table Machines 7 06-26-2008 07:32 PM




All times are GMT -5. The time now is 02:48 PM.





Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
Content Relevant URLs by vBSEO
Template-Modifications by TMS

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361