Jorge Nerín
  • Member for 7 years, 3 months
  • Last seen this week
Turning off power to usb port. Or turn off power to entire usb subsystem
23 votes

See Controlling a USB power supply (on/off) with linux, short version, for newer kernels "suspend" does not work anymore: echo "0" > "/sys/bus/usb/devices/usbX/power/...

View answer
How to force Linux kernel to "freeze" (or nearly freeze) for a few hundred milliseconds
9 votes

One option to do a quick test could be to use a KGDB enabled kernel and stop the kernel manually and test, see this link. On another note, things I remember that could cause your pauses: cpufreq, ...

View answer
What does the change of the clocksource influence?
Accepted answer
8 votes

Well, first of all, the kernel chooses the best one automatically, it is usually TSC if it's available, because it's kept by the cpu and it's very fast (RDTSC and reading EDX:EAX). But that wasn't ...

View answer
shared object file open error with "sudo command" but NOT with "sudo bash" then same command?
3 votes

Add /usr/local/lib to /etc/ld.so.conf and run ldconfig, then you'll have this path added as a default path for libraries.

View answer
How do I rotate my application log on Ubuntu?
1 votes

First, most likely you are not running logrotate automatically (usually through cron daemon). Second, you specify in your logrotate config file that you want to rotate the file /home/rails/myapp/log ...

View answer
Force ping to write before interrupt
Accepted answer
1 votes

You suffer from pipe buffering. Usually output to non interactive terminal is buffered to 4Kb blocks until delivered via pipe, so you have to disable it. You could alter your command line like this: ...

View answer
Why is my Debian jessie always in runlevel 5?
1 votes

You'll probably have runlevel 5 set in the kernel command line or arguments (look at your grub configuration): You may override the default runlevel with kernel parameter. When the boot menu is ...

View answer
Why does this change render my Block Device unbootable?
0 votes

Note that the boot volume in AWS is kind of special, I haven't been able to find a place to confirm it and explain why, but the root volume is attached as sda1 (xvda1), note the partition number 1 at ...

View answer
Compiling a kernel for Gentoo with my module list from Xubuntu
0 votes

Copy one of /proc/config, /proc/config.gz, /boot/config-$(uname -r) from your ubuntu installation as .config inside the /usr/src/linux/. Then make oldconfig, and continue as usual.

View answer
How to prevent `mv` from moving a collection of files into a single regular one?
0 votes

Another option: -n, --no-clobber do not overwrite an existing file it's the same as -i, but it wont ask, it'll fail.

View answer
Drop a specific file from the Linux filesystem cache?
-1 votes

If you want to force a file to always use O_SYNC you can mark it as so in the extended attributes with chattr +S $file: man chattr: When a file with the 'S' attribute set is modified, the ...

View answer