Tiny Core Linux

Tiny Core Extensions => TCE Q&A Forum => Topic started by: nitram on May 25, 2015, 01:51:38 AM

Title: Xorg 7.7 appears to affect Openbox performance with intel i810 graphics...
Post by: nitram on May 25, 2015, 01:51:38 AM
Tweaked JWM, but still prefer Openbox.

Running TC 6.2, extensions updated, old hardware (800 Mhz, 512 MB ram). Intel i810 onboard graphic chip is supported by the TC Intel driver. JWM performance in TC is awesome. Openbox performance is also good on the same hardware running Ubuntu 10.04, Openbox v3.4 (TC 6 uses v3.5), same xorg.conf file with only 16 colour depth.

Openbox issues in TC:
- Very slow performance when resizing windows (stutters when sizing, like a slideshow)
- Very slow performance when dragging windows (eg. takes 5-10 seconds to drag Apps window across 1152x768 screen, visible stepping of window borders and window signicantly lags behind mouse cursor)

Already tried toggling various xorg.conf graphic options without success (eg. NoAccel, DRI). Was apparently able to successfully compile Openbox v3.5 from source but system booted without a cursor (don't ask me, still learning how to compile, error free though).

The only console error i see when running Openbox is 'obt-message: Zinerama extension is not present on the server'. Only similar extension found in Apps was libXinerama, which i loaded/rebooted - no difference.

Openbox performance is otherwise good when opening menus, opening/closing apps, etc. Unfortunately the issues described above make it practically unusable. Never experienced this with a window manager before. Driving me crazy. Hints appreciated.

    [EDIT]: Changed title of thread.  Rich
Title: Re: slow openbox performance...
Post by: nitram on May 25, 2015, 11:30:23 AM
Still troubleshooting with no success.

- Disabled background image - no fix.
- Killed conky - no fix.
- Changed dpi via .Xdefaults from 96 to 128, rebooted - no fix.

As mentioned, my old Ubuntu used Openbox 3.4.10 vs TC 3.5.

Forgot to mention, my old Ubuntu install uses the 2.6 kernel.
Title: Re: slow openbox performance...
Post by: Rich on May 25, 2015, 11:58:24 AM
Hi nitram
Quote
- Very slow performance when resizing windows (stutters when sizing, like a slideshow)
- Very slow performance when dragging windows (eg. takes 5-10 seconds to drag Apps window across 1152x768 screen, visible stepping of window borders and window signicantly lags behind mouse cursor)
See if any information is showing up in  /tmp/wm_errors  after performing those actions.
Also check for warnings and errors in  /var/log/Xorg.0.log.
Also see if any new messages show up in  dmesg.

Title: Re: slow openbox performance...
Post by: nitram on May 25, 2015, 05:33:42 PM
Thanks for the help Rich.

Updated TC 6.2 to 6.3rc2, rebooted, no Apps updates, updated .dep files, build reporting database, no missing dependencies.

Rebooted with 'base text norestore' options, manually loaded xf86-video-intel, Xorg, Xprogs, aterm and openbox - same problem.

Log snippets below:
Code: [Select]
tc@box:/var/log$ cat Xorg.0.log | grep EEdeciphering
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[    56.612] (EE) intel: Failed to load module "xaa" (module does not exist, 0)
[    58.720] (EE) AIGLX: reverting to software rendering
[    58.720] (EE) AIGLX error: dlopen of /usr/local/lib/dri/swrast_dri.so failed (/usr/local/lib/dri/swrast_dri.so: cannot open shared object file: No such file or directory)
[    58.720] (EE) GLX: could not load software renderer
[    59.011] (EE) /dev/dri/card0: failed to set DRM interface version 1.4: Permission denied
[    59.056] (EE) /dev/dri/card0: failed to set DRM interface version 1.4: Permission denied
[    59.533] (EE) AIGLX: reverting to software rendering
[    59.533] (EE) AIGLX error: dlopen of /usr/local/lib/dri/swrast_dri.so failed (/usr/local/lib/dri/swrast_dri.so: cannot open shared object file: No such file or directory)
[    59.533] (EE) GLX: could not load software renderer
[    59.815] (EE) /dev/dri/card0: failed to set DRM interface version 1.4: Permission denied

Code: [Select]
tc@box:/var/log$ cat Xorg.0.log | grep WW
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[    56.427] (WW) The directory "/usr/local/lib/X11/fonts/OTF/" does not exist.
[    56.427] (WW) The directory "/usr/local/lib/X11/fonts/100dpi/" does not exist.
[    56.432] (WW) Open ACPI failed (/var/run/acpid.socket) (No such file or directory)
[    56.612] (WW) Warning, couldn't open module xaa

Code: [Select]
wm_errors snippet:
(openbox:2841): GLib-CRITICAL **: Source ID 86 was not found when attempting to remove it
(process:2885): GLib-CRITICAL **: g_slice_set_config: assertion 'sys_page_size == 0' failed
libfam.so.0: cannot open shared object file: No such file or directory
Failed to load module: /usr/local/lib/gio/modules/libgiofam.so

Code: [Select]
dmesg snippet:
Linux agpgart interface v0.103
agpgart-intel 0000:00:00.0: Intel i810 Chipset
pci 0000:00:01.0: detected 4MB dedicated video ram
agpgart-intel 0000:00:00.0: detected gtt size: 65536K total, 65536K mappable
agpgart-intel 0000:00:00.0: AGP aperture is 64M @ 0xd0000000
8139too 0000:01:03.0 eth0: link up, 100Mbps, full-duplex, lpa 0x45E1
nf_conntrack version 0.5.0 (8001 buckets, 32004 max)
[drm] Initialized drm 1.1.0 20060810
[drm] Initialized i810 1.4.0 20030605 for 0000:00:01.0 on minor 0
mtrr: base(0xd0000000) is not aligned on a size(0x360000) boundary
Failed to add WC MTRR for [d0000000-d035ffff]; performance may suffer.
[drm] Using v1.4 init.
mtrr: base(0xd0000000) is not aligned on a size(0x3000000) boundary
[drm] DMA Cleanup
mtrr: no MTRR for d0000000,3000000 found
mtrr: base(0xd0000000) is not aligned on a size(0x360000) boundary
Failed to add WC MTRR for [d0000000-d035ffff]; performance may suffer.
[drm] Using v1.4 init.
mtrr: base(0xd0000000) is not aligned on a size(0x3000000) boundary

Will investigate errors as best i can, starting with 'performance may suffer' dmesg stuff and module xaa fail. May try an archived Intel driver. Never had much luck deciphering logs, if anyone sees something please let me know.
Title: Re: slow openbox performance...
Post by: Rich on May 25, 2015, 08:28:03 PM
Hi nitram
Code: [Select]
mtrr: base(0xd0000000) is not aligned on a size(0x360000) boundary
Failed to add WC MTRR for [d0000000-d035ffff]; performance may suffer.
[drm] Using v1.4 init.
mtrr: base(0xd0000000) is not aligned on a size(0x3000000) boundary
[drm] DMA Cleanup
mtrr: no MTRR for d0000000,3000000 found
I'd probably try looking into that first. Run:
Code: [Select]
cat /proc/mtrrCompare the results for that under TC and Ubuntu. This may also be of use:
http://my-fuzzy-logic.de/blog/index.php?/archives/41-Solving-linux-MTRR-problems.html
Title: Re: slow openbox performance...
Post by: nitram on May 26, 2015, 02:06:59 AM
- Motherboard does not have an AGP slot to install different graphic hardware
- Toggled various graphic BIOS settings - no fix
- Changed xorg.conf video resolution - no fix
- Tried more xorg.conf options (eg DRI false, NoAccel true) - no fix
- Attempted to utilize Intel drivers from TC 4 and 5 - failed to boot graphics
- Tried Vesa driver - poor resolution and Openbox performance
- Output of 'cat /proc/mtrr' identical on TC6, Ubuntu 10 and Puppy Slacko 5.7
- Attempted numerous mtrr boot parameters (eg. enable cleanup, spare_reg, various gran_size and chunk_size) - nothing

Thoughts:
- Same performance issue with Intel and Vesa drivers, likely not a driver issue
- None of the mtrr boot parameters helped - maybe not mtrr issue
- Will try Openbox v3.4.11 from TC 4
- Will look into Intel xaa module stuff
Title: Re: slow openbox performance...
Post by: Rich on May 26, 2015, 08:08:40 AM
Hi nitram
Quote
- Output of 'cat /proc/mtrr' identical on TC6, Ubuntu 10 and Puppy Slacko 5.7
Then I doubt it's an MTRR issue. You want to focus on what's different between TC and Ubuntu. See what Ubuntus Xorg log
says about  xaa  as mentioned here:
Code: [Select]
[    56.612] (EE) intel: Failed to load module "xaa" (module does not exist, 0)This message is also of interest:
Code: [Select]
[    58.720] (EE) AIGLX error: dlopen of /usr/local/lib/dri/swrast_dri.so failed (/usr/local/lib/dri/swrast_dri.so: cannot open shared object file: No such file or directory)The  swrast_dri.so  library is provided by  Xorg-7.7-3d.tcz
Title: Re: slow openbox performance...
Post by: nitram on May 26, 2015, 06:23:54 PM
Thanks again for pointers Rich.

Loading Xorg-7.7-3d.tcz at boot made no difference and the i810 isn't listed in the file list.

Attempted to load my Ubuntu libxaa.so file, which is missing in TC. Saw it but failed, incompatible:
Code: [Select]
[    56.467] (II) Loading sub module "xaa"
[    56.467] (II) LoadModule: "xaa"
[    56.468] (II) Loading /usr/local/lib/xorg/modules/libxaa.so
[    56.469] (EE) Failed to load /usr/local/lib/xorg/modules/libxaa.so: /usr/local/lib/xorg/modules/libxaa.so: undefined symbol: miZeroLineScreenKey
[    56.469] (II) UnloadModule: "xaa"
[    56.469] (II) Unloading xaa
[    56.470] (EE) intel: Failed to load module "xaa" (loader failed, 7)

Compared xorg.conf files again and it appears to come down to either:
- intel: Failed to load module "xaa" (module does not exist, 0)
- GLX: could not load software renderer
- /dev/dri/card0: failed to set DRM interface version 1.4: Permission denied
Code: [Select]
-[    56.157] (II) Loading /usr/local/lib/xorg/modules/libvgahw.so
-[    56.157] (II) Module vgahw: vendor="X.Org Foundation"
-[    56.157] compiled for 1.17.1, module version = 0.1.0
-[    56.158] ABI class: X.Org Video Driver, version 19.0
-[    56.159] (**) intel(0): Depth 16, (--) framebuffer bpp 16
-[    56.159] (==) intel(0): RGB weight 565
-[    56.159] (==) intel(0): Default visual is TrueColor
-[    56.159] (II) Loading sub module "xaa"
-[    56.159] (II) LoadModule: "xaa"
-[    56.160] (WW) Warning, couldn't open module xaa
-[    56.160] (II) UnloadModule: "xaa"
-[    56.160] (II) Unloading xaa
-[    56.160] (EE) intel: Failed to load module "xaa" (module does not exist, 0)

-[    58.268] (II) AIGLX: Screen 0 is not DRI2 capable
-[    58.268] (EE) AIGLX: reverting to software rendering
-[    58.268] (EE) AIGLX error: dlopen of /usr/local/lib/dri/swrast_dri.so failed (/usr/local/lib/dri/swrast_dri.so: cannot open shared object file: No such file or directory)
-[    58.268] (EE) GLX: could not load software renderer
-[    58.268] (II) GLX: no usable GL providers found for screen 0

-[    58.560] (II) xfree86: Adding drm device (/dev/dri/card0)
-[    58.560] (EE) /dev/dri/card0: failed to set DRM interface version 1.4: Permission denied

-[    58.605] (II) config/udev: removing GPU device /sys/devices/pci0000:00/0000:00:01.0/drm/card0 /dev/dri/card0
-[    58.605] (II) config/udev: Adding drm device (/dev/dri/card0)
-[    58.605] (II) xfree86: Adding drm device (/dev/dri/card0)
-[    58.605] (EE) /dev/dri/card0: failed to set DRM interface version 1.4: Permission denied

-[    59.083] (II) AIGLX: Screen 0 is not DRI2 capable
-[    59.083] (EE) AIGLX: reverting to software rendering
-[    59.083] (EE) AIGLX error: dlopen of /usr/local/lib/dri/swrast_dri.so failed (/usr/local/lib/dri/swrast_dri.so: cannot open shared object file: No such file or directory)
-[    59.083] (EE) GLX: could not load software renderer
-[    59.083] (II) GLX: no usable GL providers found for screen 0

Darn old Intel i810, which has been problematic on various distributions but never like this. Simple fix if the board had a good old fashioned AGP port, got lots of extra cards.

So not an Openbox issue but i'm unclear whether the problem stems from the kernel, Xorg or Intel. Don't really know where to go now. This is getting pretty deep, probably not a quick fix, other than switching WM. Will look at it again later with fresher brain.
Title: Re: slow openbox performance...
Post by: nitram on May 26, 2015, 07:45:13 PM
Sorry not probably Intel driver either (ruled out with Vesa testing). So either kernel or Xorg i guess.

My xorg.conf if it helps. Maybe need to load modules here with TC ? ....will look into it.
Code: [Select]
Section "Monitor"
Identifier   "Monitor0"
HorizSync       28.0 - 96.0
  VertRefresh     50.0 - 75.0
    Option         "DPMS"
EndSection

Section "Device"
        ### Available Driver options are:-
        ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
        ### <string>: "String", <freq>: "<f> Hz/kHz/MHz"
        ### [arg]: arg optional
        #Option     "NoAccel"            # [<bool>]
        #Option     "SWcursor"            # [<bool>]
        #Option     "ColorKey"            # <i>
        #Option     "CacheLines"          # <i>
        #Option     "Dac6Bit"            # [<bool>]
        #Option     "DRI"                # [<bool>]
        #Option     "NoDDC"              # [<bool>]
        #Option     "ShowCache"          # [<bool>]
        #Option     "XvMCSurfaces"        # <i>
        #Option     "PageFlip"            # [<bool>]

Identifier  "Card0"
Driver      "intel"
BusID       "PCI:0:1:0"
EndSection

Section "Screen"
Identifier "Screen0"
Device     "Card0"
Monitor    "Monitor0"
DefaultDepth    16
SubSection "Display"
Depth 16
Modes "1152x864"
EndSubSection
EndSection
Title: Re: slow openbox performance...
Post by: bmarkus on May 26, 2015, 08:07:48 PM
Did you try TC 5.x?
Title: Re: slow openbox performance...
Post by: nitram on May 26, 2015, 11:34:23 PM
Hi Béla.

Posting from a TC 5.4 test install - same problem. I think TC 5 still uses Xorg 7.7, just different kernel.

Although old versions may pinpoint a regression, in the end i will choose to stay with TC 6. As mentioned, JWM works great on this old hardware with TC 6, despite the xorg log errors, so i can revert back if necessary.

Still wish there was a fix for this hardware issue though, Openbox still my fave.

Will try TC 4 later too and provide update.
Title: Re: slow openbox performance...
Post by: bmarkus on May 26, 2015, 11:36:47 PM
Hi

you are right, 5.x/4.x just for diagnostic purpose.

Béla
Title: Re: slow openbox performance...
Post by: nitram on May 28, 2015, 01:06:28 PM
Poor Openbox performance on my hardware in TC 6 and TC 5. Both use the same version of Openbox and Xorg, but have different kernels and Intel drivers. Already ruled out a probable driver issue, as vesa driver also gave poor performance and worse monitor resolution.

Openbox performance in TC 4 is great, using Openbox 3.4.11.1 instead of 3.5.2 and Xorg 7.6 instead of Xorg 7.7...and still different/older kernel. Wish TC 4 had the newer Xorg 7.7 to definitively test. There appear to be significant changes from Xorg 7.6 --> 7.7.

Kernel isn't supposed to have regressions, i'm sure it happens. Was able to get older Openbox 3.4 running in TC 6 by adjusting some minor dependencies but still poor performance.

Suspect a regression occured from Xorg 7.6 --> 7.7. Will copy relevant Xorg 7.6 files into my TC 6 install and see if it works. Otherwise might try running Xvesa vs Xorg for testing, but need to stay with Xorg for higher resolution.

Forgot to check TC 4 xorg log to see if same errors mentioned above - will check.
Title: Re: slow openbox performance...
Post by: nitram on May 28, 2015, 03:46:43 PM
Xorg log cleaner with Xorg 7.6 on TC 4. Despite outputs, Openbox runs perfect. Software rendering good enough for me, Xorg 7.7 in TC 6 'could not load software renderer'.
Code: [Select]
[    26.406] (WW) The directory "/usr/lib/X11/fonts/TTF/" does not exist.
[    26.406] (WW) The directory "/usr/lib/X11/fonts/OTF/" does not exist.
[    26.406] (WW) The directory "/usr/lib/X11/fonts/Type1/" does not exist.
[    26.406] (WW) The directory "/usr/lib/X11/fonts/100dpi/" does not exist.
[    26.409] (WW) Open ACPI failed (/var/run/acpid.socket) (No such file or directory)
[    35.582] (WW) <default pointer>: No Device specified, looking for one...
[    42.629] (WW) <default pointer>: No Device specified, looking for one...
Code: [Select]
[    31.944] (EE) AIGLX error: dlopen of /usr/local/lib/X11/modules/dri/i810_dri.so failed (/usr/local/lib/X11/modules/dri/i810_dri.so: cannot open shared object file: No such file or directory)
[    34.943] (EE) AIGLX: reverting to software rendering
[    39.447] (EE) AIGLX error: dlopen of /usr/local/lib/X11/modules/dri/i810_dri.so failed (/usr/local/lib/X11/modules/dri/i810_dri.so: cannot open shared object file: No such file or directory)
[    42.446] (EE) AIGLX: reverting to software rendering
Now checking if Xorg 7.6 runs on TC 6...
Title: Re: slow openbox performance...
Post by: nitram on May 28, 2015, 07:33:35 PM
Success  ;D

On my old hardware, TC 6, latest Openbox 3.5 works great with Xorg 7.6 and Intel driver from TC 4 plus driver pathway tweaking.

Still head scratching. IIRC, an original Xorg error from stock TC 6, running latest Xorg 7.7 with Intel:
Code: [Select]
[    58.720] (EE) AIGLX error: dlopen of /usr/local/lib/dri/swrast_dri.so failed (/usr/local/lib/dri/swrast_dri.so: cannot open shared object file: No such file or directory)
[    58.720] (EE) GLX: could not load software renderer
Query an Xorg or driver bug, as i believe this file was actually located in /usr/local/lib/X11/modules/dri. Will try stock TC 6 again to try and confirm.

Edit/add: The i810 Intel driver in TC 4 with Xorg 7.6 was also in the wrong pathway. Once corrected, every Xorg log error disappeared and hardware rendering was enabled.
Title: Re: slow openbox performance...
Post by: Juanito on May 29, 2015, 01:43:30 AM
/usr/local/lib/dri/swrast_dri.so is in the Xorg-7.7-3d extension in tc-5.x and tc-6.x
Title: Re: slow openbox performance...
Post by: nitram on June 05, 2015, 10:31:56 AM
Hi Juanito.

The Xorg3D extension does not help, already tried it before.

Query whether Xorg3D supports Intel i810, here are the Xorg3D installed files:

Code: [Select]
/usr/local/lib/dri/i915_dri.so
/usr/local/lib/dri/i965_dri.so
/usr/local/lib/dri/kms_swrast_dri.so
/usr/local/lib/dri/mesa_dri_drivers.so
/usr/local/lib/dri/nouveau_dri.so
/usr/local/lib/dri/nouveau_vieux_dri.so
/usr/local/lib/dri/r200_dri.so
/usr/local/lib/dri/r300_dri.so
/usr/local/lib/dri/r600_dri.so
/usr/local/lib/dri/radeon_dri.so
/usr/local/lib/dri/radeonsi_dri.so
/usr/local/lib/dri/swrast_dri.so
/usr/local/lib/dri/vmwgfx_dri.so
/usr/local/lib/libGLESv1_CM.so
/usr/local/lib/libGLESv1_CM.so.1
/usr/local/lib/libGLESv1_CM.so.1.1.0
/usr/local/lib/libGLESv2.so
/usr/local/lib/libGLESv2.so.2
/usr/local/lib/libGLESv2.so.2.0.0
/usr/local/lib/libOSMesa.so
/usr/local/lib/libOSMesa.so.8
/usr/local/lib/libOSMesa.so.8.0.0
/usr/local/lib/libXvMCnouveau.so
/usr/local/lib/libXvMCnouveau.so.1
/usr/local/lib/libXvMCnouveau.so.1.0
/usr/local/lib/libXvMCnouveau.so.1.0.0
/usr/local/lib/libXvMCr600.so
/usr/local/lib/libXvMCr600.so.1
/usr/local/lib/libXvMCr600.so.1.0
/usr/local/lib/libXvMCr600.so.1.0.0
/usr/local/lib/libxatracker.so
/usr/local/lib/libxatracker.so.2
/usr/local/lib/libxatracker.so.2.2.0
/usr/local/lib/vdpau/libvdpau_nouveau.so
/usr/local/lib/vdpau/libvdpau_nouveau.so.1
/usr/local/lib/vdpau/libvdpau_nouveau.so.1.0
/usr/local/lib/vdpau/libvdpau_nouveau.so.1.0.0
/usr/local/lib/vdpau/libvdpau_r300.so
/usr/local/lib/vdpau/libvdpau_r300.so.1
/usr/local/lib/vdpau/libvdpau_r300.so.1.0
/usr/local/lib/vdpau/libvdpau_r300.so.1.0.0
/usr/local/lib/vdpau/libvdpau_r600.so
/usr/local/lib/vdpau/libvdpau_r600.so.1
/usr/local/lib/vdpau/libvdpau_r600.so.1.0
/usr/local/lib/vdpau/libvdpau_r600.so.1.0.0
/usr/local/lib/vdpau/libvdpau_radeonsi.so
/usr/local/lib/vdpau/libvdpau_radeonsi.so.1
/usr/local/lib/vdpau/libvdpau_radeonsi.so.1.0
/usr/local/lib/vdpau/libvdpau_radeonsi.so.1.0.0

I'm just a hack, will try to add my i810.ko.gz into this directory, reboot and test.
Title: Re: slow openbox performance...
Post by: Juanito on June 05, 2015, 10:35:28 AM
It might be better to look at the Xorg log first..
Title: Re: slow openbox performance...
Post by: nitram on June 05, 2015, 10:42:13 AM
Didn't work. Here are the Xorg log errors with Xorg only, then with Xorg3D.

Xorg 7.7 only:
Code: [Select]
[    47.003] (EE) intel: Failed to load module "xaa" (module does not exist, 0)
[    49.184] (EE) AIGLX: reverting to software rendering
[    49.185] (EE) AIGLX error: dlopen of /usr/local/lib/dri/swrast_dri.so failed (/usr/local/lib/dri/swrast_dri.so: cannot open shared object file: No such file or directory)
[    49.185] (EE) GLX: could not load software renderer
[    49.729] (EE) /dev/dri/card0: failed to set DRM interface version 1.4: Permission denied
[    49.773] (EE) /dev/dri/card0: failed to set DRM interface version 1.4: Permission denied
[    50.279] (EE) AIGLX: reverting to software rendering
[    50.280] (EE) AIGLX error: dlopen of /usr/local/lib/dri/swrast_dri.so failed (/usr/local/lib/dri/swrast_dri.so: cannot open shared object file: No such file or directory)
[    50.280] (EE) GLX: could not load software renderer
[    50.563] (EE) /dev/dri/card0: failed to set DRM interface version 1.4: Permission denied

Xorg3D:
Code: [Select]
[    47.336] (EE) intel: Failed to load module "xaa" (module does not exist, 0)
[    49.528] (EE) AIGLX: reverting to software rendering
[    52.419] (EE) /dev/dri/card0: failed to set DRM interface version 1.4: Permission denied
[    52.464] (EE) /dev/dri/card0: failed to set DRM interface version 1.4: Permission denied
[    52.989] (EE) AIGLX: reverting to software rendering
[    53.289] (EE) /dev/dri/card0: failed to set DRM interface version 1.4: Permission denied

Regardless of the Xorg3D extension, my desire is to run with hardware support, not software rendering. As outlined in an earlier post above, i was able to get current Openbox running great in TC6, using TC6 kernel but Xorg 7.6. So there's some sort of regression issue with Xorg 7.7. Spent countless hours trying to figure it out, can't.

So i have a work-around (use Xorg 7.6) but it's a shame i can't use the proper TC6 extensions.

The error ' intel: Failed to load module "xaa"', can this be fixed for Xorg 7.7?

Edit: ...or could Xorg 7.6 be added to the TC6 repository, similar to how TC4 had 2 or 3 Xorg versions?
Title: Re: slow openbox performance...
Post by: Juanito on June 05, 2015, 10:45:56 AM
Are you using an Xorg.conf? The permission denied error looks odd..
Title: Re: slow openbox performance...
Post by: bmarkus on June 05, 2015, 10:46:00 AM
It has nothing to do with openbox, it is an Xorg issue. Would be good to use a proper thread subject not to mislead future readers looking for help a year later.
Title: Xorg 7.7 appears to affect Openbox performance with intel i810 graphics...
Post by: nitram on June 05, 2015, 10:55:55 AM
Thread title changed, not sure how to modify thread title from first post. Don't want to start a new thread as this one already has my archived notes. Already noted that this appears Xorg related, not Openbox, as i'm able to run current Openbox properly but only with an older Xorg.

Yes using xorg.conf, which works fine to change monitor resolution...so it must be read.
Code: [Select]
Section "Monitor"
Identifier   "Monitor0"
#VendorName   "Monitor Vendor"
#ModelName    "Monitor Model"
HorizSync       28.0 - 96.0
  VertRefresh     50.0 - 75.0
    Option         "DPMS"
EndSection

Section "Device"
        ### Available Driver options are:-
        ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
        ### <string>: "String", <freq>: "<f> Hz/kHz/MHz"
        ### [arg]: arg optional
        #Option     "NoAccel"            # [<bool>]
        #Option     "SWcursor"            # [<bool>]
        #Option     "ColorKey"            # <i>
        #Option     "CacheLines"          # <i>
        #Option     "Dac6Bit"            # [<bool>]
        #Option     "DRI"                # [<bool>]
        #Option     "NoDDC"              # [<bool>]
        #Option     "ShowCache"          # [<bool>]
        #Option     "XvMCSurfaces"        # <i>
        #Option     "PageFlip"            # [<bool>]
Identifier  "Card0"
Driver      "intel"
VendorName  "Intel Corporation"
BoardName   "82810 DC-100 (CGC) Chipset Graphics Controller"
BusID       "PCI:0:1:0"
EndSection

Section "Screen"
Identifier "Screen0"
Device     "Card0"
Monitor    "Monitor0"
DefaultDepth    16
#Option         "metamodes" "1152x864_75 +0+0"
SubSection "Display"
Depth 16
#Modes "1024x768"
Modes "1152x864"
EndSubSection
EndSection


As per my previous post/edit:
Code: [Select]
The error ' intel: Failed to load module "xaa"', can this be fixed for Xorg 7.7?

Edit: ...or could Xorg 7.6 be added to the TC6 repository, similar to how TC4 had 2 or 3 Xorg versions?
Title: Re: slow openbox performance...
Post by: netnomad on June 05, 2015, 11:27:09 AM
hi friends,

i guess that openbox has some shared code with fluxbox.
i use the intel-i915-grafic-card and experienced some problems with fluxbox with the display of icons and slit-applets and i could proof that it was caused by the new tinycore-kernel-3.16.6.
i compared the identical setup with the old tinycore-kernel-3.8.13 and the actual tinycore-kernel-3.16.6:
the old kernel showed now issues and bugs and the new kernel had some problems to display certain icons f.e. the noscript-icons in iceweasel/firefox or the slitlist-applet wmcpuload lost the ability to display the cpuload (the font for the percent-digits were replaced by black bars)

perhaps you could also verify that its a kernel bug?

thank you for your interest and help.
Title: Re: slow openbox performance...
Post by: Juanito on June 05, 2015, 11:46:20 AM
If you add this to xorg.conf:
Code: [Select]
Section "dri"
  Mode 0666
EndSection

..do the permissions errors disappear?
Title: Re: slow openbox performance...
Post by: nitram on June 05, 2015, 11:59:16 AM
Pasted into xorg.conf and rebooted, performance still poor, permission errors persist:
Code: [Select]
tc@box:/var/log$ cat Xorg.0.log | grep EE
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[    46.551] (EE) intel: Failed to load module "xaa" (module does not exist, 0)
[    48.732] (EE) AIGLX: reverting to software rendering
[    48.733] (EE) AIGLX error: dlopen of /usr/local/lib/dri/swrast_dri.so failed (/usr/local/lib/dri/swrast_dri.so: cannot open shared object file: No such file or directory)
[    48.733] (EE) GLX: could not load software renderer
[    49.277] (EE) /dev/dri/card0: failed to set DRM interface version 1.4: Permission denied
[    49.322] (EE) /dev/dri/card0: failed to set DRM interface version 1.4: Permission denied
[    49.834] (EE) AIGLX: reverting to software rendering
[    49.835] (EE) AIGLX error: dlopen of /usr/local/lib/dri/swrast_dri.so failed (/usr/local/lib/dri/swrast_dri.so: cannot open shared object file: No such file or directory)
[    49.835] (EE) GLX: could not load software renderer
[    50.121] (EE) /dev/dri/card0: failed to set DRM interface version 1.4: Permission denied
Title: Re: slow openbox performance...
Post by: Juanito on June 05, 2015, 12:03:48 PM
Sorry - I should have said to try it with Xorg-7.7-3d.
Title: Re: slow openbox performance...
Post by: nitram on June 05, 2015, 12:06:26 PM
@netnomad: Just booted into both my good working TC6 Openbox and the problematic install, both are running graphics-3.16.6-tinycore, so not the issue for me. Only got good result when i replaced TC6 Xorg 7.7 with 7.6 and the associated Intel driver from TC4.

I also did not have any draw issues as you described. Even on my problematic TC6 Openbox install, everything opens/closes well, scrolls properly, drop downs work great, just problem sliding and re-sizing windows. You may want to start a new thread with your particular issue.
Title: Re: Xorg 7.7 appears to affect Openbox performance with intel i810 graphics...
Post by: nitram on June 05, 2015, 03:25:56 PM
Sorry Juanito, misunderstood.

Modified xorg.conf as requested and rebooted:
Code: [Select]
Section "dri"
  Mode 0666
EndSection

Section "Monitor"
Identifier   "Monitor0"
#VendorName   "Monitor Vendor"
#ModelName    "Monitor Model"
HorizSync       28.0 - 96.0
  VertRefresh     50.0 - 75.0
    Option         "DPMS"
EndSection

Section "Device"
        ### Available Driver options are:-
        ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
        ### <string>: "String", <freq>: "<f> Hz/kHz/MHz"
        ### [arg]: arg optional
        #Option     "NoAccel"            # [<bool>]
        #Option     "SWcursor"            # [<bool>]
        #Option     "ColorKey"            # <i>
        #Option     "CacheLines"          # <i>
        #Option     "Dac6Bit"            # [<bool>]
        #Option     "DRI"                # [<bool>]
        #Option     "NoDDC"              # [<bool>]
        #Option     "ShowCache"          # [<bool>]
        #Option     "XvMCSurfaces"        # <i>
        #Option     "PageFlip"            # [<bool>]
Identifier  "Card0"
Driver      "intel"
VendorName  "Intel Corporation"
BoardName   "82810 DC-100 (CGC) Chipset Graphics Controller"
BusID       "PCI:0:1:0"
EndSection

Section "Screen"
Identifier "Screen0"
Device     "Card0"
Monitor    "Monitor0"
DefaultDepth    16
#Option         "metamodes" "1152x864_75 +0+0"
SubSection "Display"
Depth 16
#Modes "1024x768"
Modes "1152x864"
EndSubSection
EndSection

Onboot.lst:
Code: [Select]
xf86-video-intel.tcz
Xprogs.tcz
openbox.tcz
obconf.tcz
nano.tcz
fluff.tcz
alsa-config.tcz
aterm.tcz
firefox-official.tcz
findutils.tcz
lshw.tcz
pci-utils.tcz
Xorg-7.7-3d.tcz


Still permission errors and poor performance:
Code: [Select]
[    47.284] (EE) intel: Failed to load module "xaa" (module does not exist, 0)
[    49.475] (EE) AIGLX: reverting to software rendering
[    52.377] (EE) /dev/dri/card0: failed to set DRM interface version 1.4: Permission denied
[    52.423] (EE) /dev/dri/card0: failed to set DRM interface version 1.4: Permission denied
[    52.949] (EE) AIGLX: reverting to software rendering
[    53.247] (EE) /dev/dri/card0: failed to set DRM interface version 1.4: Permission denied

Other notable xorg log stuff:
Code: [Select]
[    49.475] (EE) AIGLX: reverting to software rendering
[    51.813] (II) AIGLX: Loaded and initialized swrast
[    51.813] (II) GLX: Initialized DRISWRAST GL provider for screen 0

[    52.377] (II) config/udev: Adding drm device (/dev/dri/card0)
[    52.377] (II) xfree86: Adding drm device (/dev/dri/card0)
[    52.377] (EE) /dev/dri/card0: failed to set DRM interface version 1.4: Permission denied

[    52.949] (II) AIGLX: Screen 0 is not DRI2 capable
[    52.949] (EE) AIGLX: reverting to software rendering
[    52.962] (II) AIGLX: Loaded and initialized swrast
[    52.962] (II) GLX: Initialized DRISWRAST GL provider for screen 0

[    53.247] (II) xfree86: Adding drm device (/dev/dri/card0)
[    53.247] (EE) /dev/dri/card0: failed to set DRM interface version 1.4: Permission denied
Title: Re: Xorg 7.7 appears to affect Openbox performance with intel i810 graphics...
Post by: curaga on June 06, 2015, 02:24:44 AM
Intel has long since dropped support for your i810. There hasn't been 3d support in years, XAA was removed a couple years ago, the latest driver has no acceleration for it.
Title: Re: Xorg 7.7 appears to affect Openbox performance with intel i810 graphics...
Post by: nitram on June 06, 2015, 10:17:46 AM
Thanks curaga for the sad but useful news. Thought this hardware would have died years ago but it keeps chugging along...so want to keep it running. The best i can do then is just run TC6 with older Xorg 7.6 and Intel driver from TC4, which still works well. Thanks to all who tried to help.
Title: Re: Xorg 7.7 appears to affect Openbox performance with intel i810 graphics...
Post by: nitram on June 21, 2015, 11:47:54 AM
Just posting my final resolution in case it helps others with similar performance issue. Fluxbox allows toggling 'opaque window moving' (Openbox only supports this for window resizing, not moving). So Fluxbox is my new favourite for this old hardware, providing similar performance to JWM with the benefit of most Openbox features.

Although the same performance issue was evident in the default Fluxbox and Openbox configurations, performance after toggling opaque window moving in Fluxbox is very crisp. Web search indicates this feature was suggested to Openbox numerous times over the years, never implemented :(

Another issue that initially kept me away from Fluxbox was not being able to automagically open new windows under the mouse cursor, although i've since discovered it is supported by changing .fluxbox/init to:
session.screen0.windowPlacement:   UnderMousePlacement