• Business card
    • Resume
    • About me
  • Informatics
  • Blog

Peter Sólyom-Nagy

Tag Archives: Linux

Read more..

How to install NVidia driver under Fedora 18-19

To install NVidia drivers follow these steps;

NOTE:
It’s recommended to use akmod-nvidia driver from rpmfusion, however it may occur that it breaks down on a kernel update.
In this case you may try the nvidia official drivers.

1. DISABLING nouveau
Nvidia driver won’t work if the nouveau driver is enabled. (By default it is.)
THIS CHANGE IS REQUIRED REGARDLESS OF WHICH DRIVER IS USED.

To disable it, do the following:

  • Update the following line in / etc/default/grub file:
    GRUB_CMDLINE_LINUX=”(…)”
    add the following parameters to the end:
    GRUB_CMDLINE_LINUX=”(…) rdblacklist=nouveau nouveau.modeset=0“
  • Run the following command:
    grub2-mkconfig -o /boot/grub2/grub.cfg
  • Create a blacklist file to / etc/modprobe.d/disable-nouveau.conf
    blacklist nouveau
    options nouveau modeset=0

DONE!
At this point the nouveau driver is disabled.
You have to reboot.

2. USING akmod-nvidia

  • yum install akmod-nvidia #this is the driver
  • yum install nvidia* #this will install nvidia-settings
  • yum install vdpauinfo libva-vdpau-driver libva-utils
  • Reboot on success

3. USING THE NVidia OFFICIAL DRIVER

Prerequisites
– you have downloaded the official driver (NVIDIA-Linux-x86_64-???.??.run)
– you have the kernel-devel package for the used kernel.

Installing nvidia official driver

  • Switch to konsole (Ctrl-Alt-F2)
  • init 3
  • run the NVIDIA Official driver script (NVIDIA-Linux(…).run)
  • Follow the steps
  • Reboot on success

4. TROUBLESHOOTING

Using version 325.15 with kernel 3.10 and above

The kernel version 3.10 requires 325.15 or newer driver.
The kernel version 3.11 and newer requires 325.15 with the following patch:

  • Unpack the driver script
    NVIDIA-Linux(…).run -extract-only
  • Apply the following patch in the extracted folder:

— a/kernel/nv-linux.h
+++ b/kernel/nv-linux.h
@@ -957,7 +957,11 @@ static inline int nv_execute_on_all_cpus
#endif
#if !defined(NV_VMWARE)
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 11, 0)
+#define NV_NUM_PHYSPAGES                get_num_physpages()
+#else
#define NV_NUM_PHYSPAGES                num_physpages
+#endif
#define NV_GET_CURRENT_PROCESS()        current->tgid
#define NV_IN_ATOMIC()                  in_atomic()
#define NV_LOCAL_BH_DISABLE()           local_bh_disable()

  • After the patch you can run: nvidia-installer

Fixing bad DPI

If some text in X (even on the login screen) uses unreadably large fonts, you have to fix the DPI resolution of the screen.
You can fix this by inserting the following line to / etc/X11/xorg.conf to the Section “Monitor”:
Section “Monitor”
Identifier     “Monitor0”
…
Option         “DPI” “96 x 96”
EndSection

2013-09-24 Sólyom-Nagy Péter Leave a comment
ASUS S1-AT5NM10E
Read more..

HTPC made easy

It was a plan for a long while but finally I decided to build my HTPC. The reason was that my Samsung DVD-R121 recorder gave up and the spare part would have been as expensive as a new recorder.

My expectations:

Daily costs

One of the most important thing is the power consumption. It makes me nervous that when I switch on my desktop PC the base consumption is about 200W which is a way too much.

Performance

I know its conflicting but I need a good performance beside low cost. I want to watch high quality FullHD videos without glitch.

Scalability

If I only want to watch videos as a typical user I can buy a ready made Media Player like PopcornHour or WD Live. But I’m a developer so I like challenges. And I like Linux. So it’s clear that I want to build my own custom player.


After a long search I found my configuration;

  • Barebone: Asus S1-AT5NM10E (info)
    • intel Atom D525, 1.8GHz, NVIDIA ION 2 GPU, b/g/n WiFi, Gigabit Ethernet,
  • Memory: 2GB
  • Storage: 1TB SATA
  • Input device: Logitech diNovo Mini (info)

The D525 is a 64bit dual Core HyperThreaded processor . It has an integrated GPU but Asus decided to add an external NVIDIA ION 2 processor and that was an excellent idea. This is a low power but high performance GPU to play 1080p HD video. The motherboard of course has got HDMI output so it’s easy to plug in to your FullHD TV.

The operating system is Fedora 16 64bit.

During the install I turned off the unnecessary options like office or developers tools as I wanted to build a HTPC. The install was working nearly out of the box. What about I have to take a closer look is the graphics driver the Bluetooth and the CIR component. The infra port and the BT is still unusable but it doesn’t hinder the daily usage.

NVIDIA supports the Linux fans

NVidia

It’s great that NVIDIA has got a fully functionable driver for their GPUs and it’s really easy to configure. It has got much-much better performance than the default driver coming with Fedora. My laptop has got intel GPU and it took 3-4 days to cope with the configuration. The NVIDIA took only couple of hours. I really like it.

The price of quality

I have got issues with Bluetooth on Fedora. The KBluetooth crashes everytime I click on Apply so I wasn’t sure if a Bluetooth keyboard will be working with. The diNovo Mini is a high quality HTPC keyboard. I expected a reliable radio connection high comfort and long lasting battery power. I got what I expected.

The keyboard is lightweight and very intelligent. After 5 seconds turns off the lights and the radio communication to save power. When I press the cursor (or touch the pad in mouse mode) only the main buttons will be lit. The QWERTY part will be lit only when I start typing. The response time after standby is acceptable. The buttons are rubbered and soft but the keypress is definite.

You can read more reviews about diNovo Mini here and here.

The only disadvantage what I have to mention is its price. But I’m pleased with it.


The software environment

As I mentioned before the OS is Fedora 16 64bit. Since the processor is 64 bit the OS can push its advantage.

The media player is XBMC

XBMC

The XBMC is a good frontend for Media PCs on a lot of hardware configurations. Generally it was developed for XBox but it works on anything with Linux or Windows. It has got a handy interface. It can utilize network shares and local storage too. If you organize your media XBMC can easily discover them. You have to keep some rules and naming conventions and XMBC will be able to pull all movie and TV series information from the internet repositories.

To spare later maintenance issues you can export the captured informations just beside the media files so after a reinstall XBMC will find them much faster.


Still under progress

The HTPC isn’t yet finished. I want to have operating Infrared and Bluetooth interfaces and I need a TV tuner to record TV shows. These are still under progress tasks.

2011-04-20 Sólyom-Nagy Péter Leave a comment
  • Magyar
  • English
  • Magyar
© Copyright 2003-2016 - Sólyom-Nagy Péter
Impressum
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.Ok