[gentoo-user] Re: Kernel 4.x and (probably) event issues

2016-03-12 Thread Roman Dobosz
On Mon, 7 Mar 2016 16:46:30 + (UTC)
James  wrote:

> You might want to install
> sys-apps/udevil
>
> and see how your usb devices perform.
> It's an idea to test, not a guarranteed solution.

Thanks for your answer, but I (probably) solved the issue with the USB
power, thanks to Adam hints.

(BTW, sorry for double posting)

-- 
  -^-  _   something is grinding the emptiness:
   _ /O)_\//   Michigan - Sorrows (Infacted Version)
  (_(|__(_(_) grf. https://tormentedradio.com



[gentoo-user] Re: Kernel 4.x and (probably) event issues

2016-03-12 Thread Roman Dobosz
On Mon, 7 Mar 2016 11:00:26 +1100
Adam Carter  wrote:

> > 1. After successful boot, I've noticed, that buttons above the
> > touchpad[1] stopped working. Tried to debug the thing, but they do
> > nothing even under xev or in showkey - seems like they dead. Didn't find
> > anything interesting by searching the net.
> Longshot (since i've had one instance in the last few years where i need to
> rebuild xorg after a kernel update) have you tried rebuilding the
> xf86-input-* packages against the new kernel?

Yep, that was the first thing, right after rebuilding 3rd party
modules, I've done.

I've done a little test with Live USB with some popular desktop
distribution, and it turns out, those buttons doesn't work there
either. Not sure if it's a kernel bug, or something else.

> > 2. This one is more annoying. After boot to the new shiny 4.x kernel,
> > devices connected via the usb seems to have aggressive power safe mode.
> > For example - if I typing for a while everything is fine, if I stop for
> > a couple of seconds, and then start to type, for approximately 2 seconds
> > there is no response from the device, and after that i can type again.
> > Note, that during those 2s no buffering is done, so whatever I'm typing
> > in this short period, is lost. Same goes to the mouse movement and
> > buttons.
> I haven't had much luck with USB power saving working in a useful way and
> leave it off. Strange its been enabled by default for you.
> 
> cat /sys/bus/usb/devices/*/power/control will show you what the current
> settings are.
> 
> The options are on/auto.
> 
> "on" means that the device should be resumed and autosuspend is not allowed.
> 
> so that's what you want. It can blanket set with;
> 
> echo on | tee /sys/bus/usb/devices/*/power/control
> 
> Or you could work out which devices are actually a problem and just "on"
> those particular ones.

Actually, this was very useful. Thank you for the hint. I've created 
simple script which gives me a device and power status next to it. 
I've compared values from the distro I've mentioned above with the 
values I get from the Gentoo system. It turns out that indeed all 
devices are set to "auto". I've noticed either, that I have running 
laptop mode (app-laptop/laptop-mode-tools), which was the one 
responsible for setting all devices to "auto". Will investigate it a
bit further, if laptop-mode was the only one who change those values.

Thanks.

-- 
  -^-  _   something is grinding the emptiness:
   _ /O)_\//   Tristesse de La Lune - Coriolis
  (_(|__(_(_) grf. https://tormentedradio.com



Re: [gentoo-user] openscad seg fault

2016-03-12 Thread Godzil
If it's build using debug options, looking with GDB where it fail would be much 
more useful than a random dependency graph.

It's intriguing that it default just after doing a mmap:

mmap(NULL, 4096, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_ANONYMOUS, -1, 
0) = 0x7f50a7949000


What options did you pass to strace to get this log? Have you set the "follow 
child" option?

> Le 10 mars 2016 à 05:55, Adam Carter  a écrit :
> 
> I can open the program ok, but when I click on New it seg faults. Strace of 
> its death below.
> 
> I tried recompiling it and all its immediate dependencies. How do i 
> troubleshoot this?
> 
> Cheers.
> 
> 
> ioctl(10, 0xc020645e, 0x7ffc4f7bd9c0)   = 0
> mmap(NULL, 65536, PROT_READ|PROT_WRITE, MAP_SHARED, 10, 0x1380a1000) = 
> 0x7f50a6adc000
> brk(0x2ed6000)  = 0x2ed6000
> ioctl(10, 0xc020645d, 0x7ffc4f7bd960)   = 0
> ioctl(10, 0xc020645e, 0x7ffc4f7bda00)   = 0
> mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_SHARED, 10, 0x1380b1000) = 
> 0x7f50a794a000
> ioctl(10, 0xc020645d, 0x7ffc4f7bd800)   = 0
> ioctl(10, 0xc008646a, 0x7ffc4f7bd930)   = 0
> ioctl(10, 0x40086464, 0x7ffc4f7bd930)   = 0
> ioctl(10, 0xc020645e, 0x7ffc4f7bd950)   = 0
> mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_SHARED, 10, 0x1380b2000) = 
> 0x7f50a7949000
> munmap(0x7f50a7949000, 4096)= 0
> ioctl(10, 0xc020645d, 0x7ffc4f7bd800)   = 0
> ioctl(10, 0xc008646a, 0x7ffc4f7bd930)   = 0
> ioctl(10, 0x40086464, 0x7ffc4f7bd930)   = 0
> ioctl(10, 0xc020645e, 0x7ffc4f7bd950)   = 0
> mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_SHARED, 10, 0x1380b3000) = 
> 0x7f50a7949000
> munmap(0x7f50a7949000, 4096)= 0
> futex(0x2aea9f4, FUTEX_WAKE_OP_PRIVATE, 1, 1, 0x2aea9f0, {FUTEX_OP_SET, 0, 
> FUTEX_OP_CMP_GT, 1}) = 1
> futex(0x2aea9c8, FUTEX_WAKE_PRIVATE, 1) = 1
> futex(0x2c652dc, FUTEX_WAIT_PRIVATE, 1, NULL) = -1 EAGAIN (Resource 
> temporarily unavailable)
> futex(0x2c652b0, FUTEX_WAKE_PRIVATE, 1) = 0
> ioctl(10, 0xc020645d, 0x7ffc4f7bdbe0)   = 0
> futex(0x35a6a2c168, FUTEX_WAKE_PRIVATE, 2147483647) = 0
> mmap(NULL, 4096, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_ANONYMOUS, 
> -1, 0) = 0x7f50a7949000
> --- SIGSEGV {si_signo=SIGSEGV, si_code=SEGV_MAPERR, si_addr=0x968} ---
> +++ killed by SIGSEGV +++
> Segmentation fault
> 




Re: [gentoo-user] openscad seg fault

2016-03-12 Thread Urs Schütz

On 03/10/16 02:55, Adam Carter wrote:

I can open the program ok, but when I click on New it seg faults. Strace
of its death below.

I tried recompiling it and all its immediate dependencies. How do i
troubleshoot this?

Cheers.

Hi Adam

openscad is working fine here. I propose comparing our versions. Here is 
mine:


$ equery depgraph openscad
 * Searching for openscad ...

 * dependency graph for media-gfx/openscad-2015.03
 `--  media-gfx/openscad-2015.03  ~amd64
   `--  media-gfx/opencsg-1.3.2-r1  (media-gfx/opencsg) ~amd64
   `--  sci-mathematics/cgal-4.3-r1  (sci-mathematics/cgal) amd64
   `--  dev-qt/qtcore-4.8.6-r2  (dev-qt/qtcore) amd64
   `--  dev-qt/qtgui-4.8.6-r4  (dev-qt/qtgui) amd64
   `--  dev-qt/qtopengl-4.8.6-r1  (dev-qt/qtopengl) amd64
   `--  dev-cpp/eigen-3.2.6  (dev-cpp/eigen) ~amd64
   `--  dev-libs/gmp-6.0.0a  (dev-libs/gmp) amd64
   `--  dev-libs/mpfr-3.1.3_p4  (dev-libs/mpfr) amd64
   `--  dev-libs/boost-1.56.0-r1  (dev-libs/boost) amd64
   `--  x11-libs/qscintilla-2.8.4-r1  (x11-libs/qscintilla) amd64
[ media-gfx/openscad-2015.03 stats: packages (11), max depth (1) ]

Urs