Hot answers tagged

54

The charging thresholds are, very unfortunately, firmware and vendor specific. The Lenovo ThinkPad user is luckily provided with a solution outlined on ThinkWiki. It basically says that you would have to install and load the tp_smapi kernel module: sudo apt-get install tp-smapi-dkms sudo modprobe tp_smapi and write the desired charging thresholds to ...


16

During the 10.10 development cycle the decision was made to drop support for i386 and i486 entirely. You can see the original specification here: https://blueprints.launchpad.net/ubuntu/+spec/foundations-m-686-compile. I believe support may have been dropped for i586 as well, although that was a bit more controversial. Importantly, this wasn't just kernel ...


14

It is rather difficult in my experience to lower the Compiz memory usage. The best thing I can suggest to lower the texture quality in the OpenGL plugin, but this won't change much afaik. Another source of compiz memory increases can be memory leaks. This seems to sometimes be triggered by indicators, but can be from other sources as well (not sure of them ...


10

A work around to the compiz memory leak is to : sudo kill -HUP "compiz process id" Not a great solution, but it frees up leaked memory without completely killing the process.


10

WOW! H264 is a high quality video codec but (as you refer), it makes "heavy" size video files. I am not sure if your question is related to a GUI or Command Line task. But, assumming that you are using "Transmaggedon" I will write this considering the options for GUI applications. In my case, I prefer the usage of "Mobile Media Converter" which works ...


8

The only thing that stands out for me in that bootchart is the (relatively) long period from ~6sec to ~11sec into the boot where the disc throughput is very low. This suggests that ureadahead is doing a lot of (slow) seeking rather than (fast) linear reads. Making ureadahead reprofile your boot may help here. Deleting the .pack files in /var/lib/...


8

You could at least start with iotop. It won't tell you which filesystem is being written but it will give you some processes to investigate. sudo apt-get install iotop sudo iotop It shows instantaneous disk reads and writes and the name of the command reading or writing. If you are trying to catch a process that writes infrequently, you can use the --...


7

The accepted answer does not work on my new Lenovo T440s. Apparently the firmware changed. Following http://www.thinkwiki.org/wiki/Tpacpi-bat, I did git clone https://github.com/teleshoes/tpacpi-bat.git cd tpacpi-bat/ ./install.pl sudo ./tpacpi-bat -s ST 1 15 # load internal battery when below 15% sudo ./tpacpi-bat -s SP 1 95 # stop charging at 95% sudo ./...


6

The following uses the kernel's virtual memory block dump mechanism. First get the perl script: wget http://aspersa.googlecode.com/svn/trunk/iodump Then turn on block dump: echo 1 | sudo tee /proc/sys/vm/block_dump And run the following: while true; do sleep 1; sudo dmesg -c; done | perl iodump ..and press Controlc to finish, you will see something ...


5

If you have such a low end system (For me 512 MB of RAM is still not low, but it depends also on your Motherboard and CPU) I actually recommend Xfce with Xubuntu or LXDE with Lubuntu. Both are oriented towards low end systems. I actually have a question regarding this that was very well answered by fossfreedom: Lighter in CPU/Memory Usage: Lubuntu or ...


4

On my Toshiba R830 running Windows 8.1, I installed the Toshiba Power Saver application in order to limit the battery charge to 80% When I boot on Linux (Ubuntu, Mint, etc), the maximum charge is still limited to 80%. Therefore, the Toshiba Power Saver seems to store its configuration into the bios. The only drawback is that if I want to travel with a ...


4

See if this question and relative answer can help you: Is there a copy handling progam available that can queue, pause and resume? It means to use an application other that Nautilus, that AFAIK cannot do what you ask.


4

The best way to compress video I found so far is Firefogg. This is a firefox plugin (so it's multi-platform tool as is firefox) It will compress to WebM format (open Source - Web compatible codec) It offers multiple encoding sizes (really convenient to come up with best compression ratio) REALLY efficient compression ratio (at least as much as H264) It's ...


3

Alright, here goes: #!/bin/bash threshold=100 # Minimum amount of memory left when you should start killing, in MB browser="firefox-bin" # Change this to whatever you use, firefox is actually firefox-bin while true; do available=$(free -m | head -2 | tail -1 | awk '{print $4}') if [ "$threshold" -ge "$available" ]; then killall -q $...


3

cgroups (control groups) are used mainly by LXC (LinuX Containers) and its "memory cgroup" is for process group memory restriction. Unless you need this stuff it's better to disable this feature, since otherwise it consumes a part of RAM for its internal structures and CPU can be affected as well.


3

Memory management in Ubuntu and Linux in general is fairly optimal. Any applications that cause memory problems (eg "memory leaks") would be considered buggy. Unused RAM is utilised by the system for read-ahead cache and other optimisations. These optimisations are removed from memory if it required by the system, so there's no need to clean it either ...


2

New releases of Ubuntu(10.10 and above) won't work on anything older than i686. http://princessleia.com/journal/?p=2989


2

Killing anything to conserve memory is a bad idea, especially automatically. Make sure that you have enough swap and RAM available - of course, running something that uses 1 gig of memory on a 512MB machine is like trying to win a F1 Grand Prix while driving a Corolla. By which I mean "don't do it."


2

Did you check to see whether there is a BIOS setting on your laptop for this? My laptop had a Windows Application as well as a "Battery Life Extender" setting in the BIOS for this exact feature.


2

I know this is an old post, but Gus's answer helped me and I'd like to add to it. This is what I did (on Ubuntu 12.04): Alt+F2 (run application) Scheduled Tasks New recurrent task killall compiz -HUP Every day at 00:00 Now compiz will be restarted automatically every night, without having to know the process id. My problem was that if I left my screen ...


2

OK, so I don't know what the particular problem here might be, but here is a very basic approach that I usually take in such a case. Forgive me if you think it is too simplistic. I usually open a terminal window and type `top` This is a terminal (ncurses) based program with a not very intuitive interface; there are more elaborate graphic alternatives, ...


2

If you have full root access to the box, you might want to look at some of the tweaks on Elliott C. Back's Post: Why My Site Is So Much Faster Than Yours. Some can be done on Non Root enabled boxes (like W3 Super Cache, which i use for my own sites), but others may need root access for (like tweaking MySQL, PHP OpCode, Apache and Kernel tweaks).


2

Unfortunately I cannot post this as a comment so bear with me. What is the output of iwconfig Check for a field called "Power Management:" If it is on, then it may be that linux may using less power for your Wifi to save energy. If this works, then you need to make this permanent by editing power configuration settings.


2

As a Gentoo user I can say for sure: it depends. If you disable some heavy options your application will work faster. If you enable some risky optimizations and they work - your application will work faster. If you use upstream defaults, your application will work slower. If you misconfigure anything, application will be slow and unstable. Generally, ...


1

The operating system will already have a system cache for the files you access. However if you are working with lots of small files you'd probably be better off turning of atime with the noatime boot parameter. Each time you access a file, it triggers a write to update when a file was last accessed. Other than that or buying an SSD drive the linux kernel ...


1

can the directory structure for this folder be cached in the RAM? Can the most used files be cached into the RAM as well? Yes. That is how the system normally operates; you don't have to do anything special. The kernel automatically caches recently accessed files in unused ram.


1

Your slowness may be due to the fact that you are using Intel HD Graphics. Linux does not have very good 3D graphics support for Intel Chips. Also, in 12.04, Compiz eats a lot of memory. Use a 64 bit Ubuntu with either Gnome 3 or Cinnamon desktop for graphics effects. They use less amount of memory than compiz. Or if you want, you can use Unity-2D, faster ...


1

So to answer the question I think you're asking, it is possible to use these two together, and doing so won't cause any ill effects on the other. I don't know if you are familiar with /dev/shm, but it's a filesystem mounted in RAM which appears to be a folder. SHM, tmpfs and zram are all slightly different implementations which lead to the same output - ...


1

I'd suggest you this simple tips: Upgrade the RAM, it will make a huge difference. Use a lighter Desktop like LXDE, i even find LXDE+xcompmgr (a basic composite manager) faster than Gnome with default Metacity. Gnome is a "hog" in these netbooks. 2.1 You can also use XFCE+Docky or Avant Window Manager to give your clients a more Unity-like feel without ...


1

Depending on the demands of your applications the Ubuntu Server requires a minimum of 128 MB RAM. So this is the minimum of RAM you should give to your virtual machine. Further steps to reduce resource usage may be: After having launched a virtual machine terminate Virtual Box Manager to free system resources. To further reduce RAM usage there also is a ...



Only top voted, non community-wiki answers of a minimum length are eligible