/srv/irclogs.ubuntu.com/2016/03/10/#ubuntu-x.txt

=== tjaalton_ is now known as tjaalton
alkisgHi, I'm a developer of a software called epoptes.org. At some dialog I want to display to the user something like:07:54
alkisgVGA card: i915 [15ad:0405]07:54
alkisgI.e. the driver that manages the card, and its pci-id, if it exists (I think e.g. in raspberry pi it doesn't exist).07:54
alkisgWhat's the best way to get that info via shell, even if xorg isn't running? Currently I'm using lspci, but it's not doing a very good job...07:54
alkisgI was thinking of checking something under /sys07:54
alkisg/sys/devices/pci0000:00/0000:00:0f.0# cat uevent 07:55
alkisgDRIVER=vmwgfx07:55
alkisgPCI_CLASS=3000007:55
alkisgPCI_ID=15AD:040507:55
alkisgThat would be fine for my needs, but I'm not sure which /sys path to check there, it's too different in various systems that I check07:56
alkisgWould `find /sys/ -name boot_vga` show me the path I'm interested in?07:57
tjaaltonprobably not the best place to ask :)07:58
tjaaltonbut that might be a start07:59
alkisgThank you tjaalton, I'll test that in 20-30 systems and see if it's solid enough07:59
tjaaltonand then you get a hybrid07:59
tjaaltonwhere it doesn't necessarily show what you mean08:00
alkisgI don't mind if it shows the wrong vga in multi-vga systems08:00
tjaaltonk08:00
* alkisg tries: cat $(find /sys/devices -name boot_vga -printf %h)/uevent08:03
alkisgOne problem only so far, under virtualbox, uevent doesn't have a DRIVER= line.... while `lspci -nn -k | grep -A 2 VGA` does show "Kernel modules: vboxvideo".08:10
alkisgIn all the other 20 systems, no problems whatsoever :)08:11
alkisgI'm testing with an ancient trident card under 16.04. I don't get a DRIVER= line in the uevent file and Xorg.7.log tells me that it couldn't load the "trident" module.10:00
alkisgThen I run "modprobe tridentfb" and I do get a DRIVER line etc.10:00
alkisgQuestions...10:00
alkisg1) Does that mean that no drivers were managing the card until I ran modprobe tridentfb?10:00
alkisg2) Should I expect the card to work better after modprobe tridentfb?10:00
alkisg3) Should I put that modprobe tridentfb somewhere in e.g. /etc/modules so that it's automatically loaded on boot?10:00
tjaaltontrident doesn't have a kms driver, not sure tridentfb makes anything better10:01
alkisgSo which module makes that card work by default, is it modesetting_drv?10:03
alkisgfbdev?10:03
alkisgvesa?10:03
alkisg...all of the above? :D10:03
tjaaltonvesa10:06
tjaaltoncheck the xorg log10:06
alkisgIt reports all those 310:06
tjaaltonmodesetting only loads on drivers that do kms10:06
tjaaltonlook closer10:06
alkisglooking... :)10:06
tjaaltonif you have tridentfb loaded the it's probably fbdev on x10:07
alkisghttp://paste.debian.net/413858/10:09
alkisgI'm still not sure... in this log, I haven't loaded tridentfb10:10
tjaaltonvesa10:10
alkisgAnd I see all of the 3 above10:10
tjaaltonand modesetting & fbdev are unloaded10:11
tjaaltonso vesa remains10:11
alkisgSo it tries the modules in turn, and keeps one of them...10:11
alkisgThank you very much tjaalton, that cleared some things for me 10:11
alkisgx11perf -putimagexy500 results: 54 rep/sec on tridentfb, 6 rep/sec on vesa11:11
alkisgOn such slow PCs it does make the difference of "usable vs unusable"11:11
alkisg...unfortunately metacity can't start under tridentfb, so... unusable :D11:12
alkisgSame for s3fb, it's 10 times faster than vesa, but crashes metacity11:52
tjaaltonwhy don't you have x-x-v-trident installed?11:54
=== yofel_ is now known as yofel
alkisgThanks for the hint, I thought all of the x-x-v* were installed by default but apparently they aren't, installing...12:53
tjaaltononly for kms-capable hw, plus fallback drivers12:54
alkisgThat epoptes dialog where we're showing the client info is a very nice place to notify sysadmins about obsolete hardware or missing drivers etc12:56
alkisgI'll see to it that we make it very visible when a driver is missing12:56
tjaaltonall hw without a kms driver is obsolete :)12:57
alkisgDo I need to have xserver-xorg-legacy installed to run with non-kms drivers?16:14
=== JanC_ is now known as JanC
tjaaltonyes16:26
alkisgty, installing... (maybe those legacy drivers should depend on it?)16:28
tjaaltonmaybe16:34
alkisgMeh, the big difference in putimage was due to "modprobe tridentfb" making xorg start with 8bpp as the default, not 24bpp...18:57
alkisgAfter forcing 24bpp, the putimage results are similar with or without tridentfb (and metacity etc are much more stable)18:57
alkisgIt does sound lame to have 0.7 putimages / second in e.g. tnt vanda though, the card's bandwidth should be hundreds of times faster than that...18:59
alkisgtrident: 8bpp => 50 putimage/sec, 16bpp => 20 putimage/sec, 24 bpp => 6 putimage/sec19:13
alkisgWith 16bpp it's not crashing and it's fast enough to be usable19:13
ricotztjaalton, hi, I wondering why intel-gpu-tools is not maintained by xorg team19:19
tjaaltonricotz: what do you mean?19:20
ricotzthis package https://packages.qa.debian.org/i/intel-gpu-tools.html19:20
tjaaltonMaintainer: Debian X Strike Force <debian-x@lists.debian.org>19:20
tjaaltonhmm maybe mine is old19:20
ricotzoh, I misread that then19:21
ricotzthere is 1.14 release19:21
tjaaltonlet's update it then19:23
ricotztjaalton, might require python-docutils and libxv-dev19:28
tjaaltonnew build-deps?19:29
ricotztjaalton, yes, but I am looking at git master19:29
tjaaltonconfigure at least passed fine19:29
tjaaltonand built too19:30
ricotzrst2man19:30
ricotzin a clean chroot? ;)19:30
tjaaltonyes19:30
tjaaltonsbuild19:30
ricotzthe manpages are not built without rst2man19:31
tjaalton-rw-r--r-- root/root       641 2016-03-10 21:30 ./usr/share/man/man1/intel_aubdump.1.gz19:31
tjaaltonbollocks :)19:31
ricotzhmm, https://launchpadlibrarian.net/247417011/buildlog_ubuntu-xenial-amd64.intel-gpu-tools_1.14+git20160310.3e2443f8-0ubuntu1~16.04~ricotz0_BUILDING.txt.gz19:31
ricotzchecking for rst2man... no19:32
ricotzchecking for OVERLAY_XVLIB... no19:32
tjaaltonthose are not new things19:33
ricotzI warned you though ;)19:35
tjaaltonthere is no rst2man19:37
tjaaltonbtw19:37
ricotzpython-docutils: /usr/share/docutils/scripts/python2/rst2man19:38
tjaaltonoh sorry19:38
tjaaltonriiht19:38
tjaalton+g19:38
tjaaltonintel-gpu-overlay isn't installed, needs manual handling19:49
tjaaltonand it's only built on x8619:50
ricotzonly on x86?19:51
ricotzintel-gpu-tools: /usr/bin/intel-gpu-overlay on x86_6419:52
ricotz(maybe a fixed buildsys problem)19:52
tjaaltonhmm19:52
tjaalton1.14 checks the arch before checking for xvlib19:53
ricotzhttps://launchpadlibrarian.net/247418929/buildlog_ubuntu-xenial-amd64.intel-gpu-tools_1.14+git20160310.3e2443f8-0ubuntu1~16.04~ricotz1_BUILDING.txt.gz19:54
tjaaltonx86 archs so _64 too19:58
tjaaltonanyway, since it actually is installed that means I don't need to adjust anything19:59
tjaaltonand it already was built just without xvlbi20:00
tjaalton-lib20:00
tjaaltonbah20:00
furkantjaalton: did you notice that some fonts look sort of bold/fuzzy after upgrading to Xorg 1.18?22:30
furkanhttps://www.dropbox.com/s/mbl5z6y4zqtplpe/fuzzyfont1.png?dl=022:32
furkani just upgraded and restarted my PC22:32
furkanthe font on the buttons is messed up22:32
furkanand "60 Hz", and "Aperture Priority Mode"22:32
furkanfor the dropdown menus, i wonder if it's because the 2 strings are being rendered on top of each other22:33
tjaaltonprobably freetype update breaking it22:34
furkanbecause when i click on the dropdown22:34
furkanand the choices appear, the fonts look normal22:34
furkanseems to happen with dropdowns and buttons22:34
furkansame thing w/ calculator22:34
tjaaltonon intel hw?22:35
furkanradeon22:35
tjaaltonk22:35
tjaaltonfile a bug22:35
tjaaltonactually no22:35
tjaaltonthis is freetype22:35
furkando you see the same thing in calculator?22:36
furkanif you switch to scientific mode you get the dropdown menus for degrees/radians22:36
furkanwhen you click the dropdown and the choices appear, the fonts are normal22:36
furkanbut after you select one, it goes fuzzy22:36
tjaaltonfile a bug against freetype22:37
furkanalright22:37
tjaaltonunless there is already22:37
tjaaltoni use a custom build to revert a change22:37
furkanxorg 1.18 just hit yesterday22:38
furkanso it might not have been noticed by many people yet22:38
tjaaltonit's not caused by it22:38
furkani mean the bug itself could be in freetype, but it must have been triggered by the xorg update because that's what i just updated22:39
furkanok actually i had an update to freetype as well22:40
tjaaltontry reverting that22:40
tjaaltonsounds like you haven't updated in quite a while then22:41
tjaaltonhttps://lists.ubuntu.com/archives/xenial-changes/2016-February/007209.html22:41
furkanyeah actually i was using a mirror that was out of date22:42
furkani had picked a mirror that was nearby22:43
furkanthen realized today that i wasn't getting the xorg update so i switched to a different one22:44
furkanok reverted back to libfreetype6_2.5.222:46
furkanwill see what happens22:47
furkanok yeah, still the same problem22:48
furkanactually in january or february i had added the x-staging ppa to try out xorg 1.18, and i had noticed this then as well22:49
furkani dunno if there are any other packages that got pulled down from that ppa22:49
furkanpackages which could have contributed22:50
tjaaltontest a daily live that's old enough22:54
furkanlike a daily live CD?22:58
tjaaltonyes22:58
furkanis there an archive of those?22:58
tjaaltonhttp://cdimages.ubuntu.com/daily-live/22:58
tjaalton20160307 should be old enough22:58
furkanoh great, yeah it should be22:59
furkanok it works fine with 2016030723:17
furkani guess after 2 years, it's time for a clean installation23:17
furkani've been upgrading releases since 14.04, there must be dirty config files that have been left over along the way or something23:19
furkanafter that last dist-upgrade, my volume buttons don't work at all, even after a fresh boot23:19
furkanbut they worked with the live CD23:19
furkani guess this time i'll stick with 16.04 for as long as i can23:20
furkantjaalton: i just realized i totally confused myself - the whole point of trying the older image was to verify the absence of the bug23:29
furkandoes the 20160310 build contain xorg 1.18?23:29
furkanok yeah it does (just checked the manifest)23:30
furkani'll try that out to make sure that it's not a problem with my configuration23:31

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!