Tuesday Nov 25, 2008

Solaris Thinkpad T61 / T61p Suspend to RAM support

Currently I am running Solaris Nevada 102 build and suspend to RAM and resume works with Thinkpad T61p and T61 laptops. Only problem I faced is with OSS driver, sound stops working after resuming. With the recent "audiohd" driver integration this can be tackled.  If you have freshly installed Solaris Nevada 102 and above then you can skip the OSS removal step and go direct to enabling suspend to RAM support.

1) remove oss driver with "pkgrm oss"

2) touch /reconfigure and then reboot the machine. 

Now Solaris uses "audiohd" driver for sound instead of oss driver.

Enabling Suspend to RAM support:

           Add the below entry to /etc/power.conf

--------

S3-support              enable

---------

Run " /usr/sbin/pmconfig"  to activate it.

To test the Suspend to RAM support run the command " /usr/openwin/bin/sys-suspend" and then select "suspend" option. To resume press power button.

Monday Nov 24, 2008

Solaris Thinkpad T61p projector configuration

The default Nvidia driver that is being shipped with Solaris Express/OpenSolaris distro doesn't allow you to switch to 1024x768 resolution for Thinkpad T61p.  Most of the LCD projectors works with "1024x768" resolution.  Add the following lines to Nvidia device section in /etc/X11/xorg.conf for 1024x768 resolution.

--- 

  Option "UseEdidFreqs" "False"

 ---

I have attached xorg.conf file for reference. Tested this on Thinkpad T61p which comes with Nvidia Quadro FX 570M chipset.

For projector setup. Copy the xorg.thinkpad.t61p.projector.conf  to /etc/X11/xorg.conf and restart the gdm or CDE login . You can remove/move the file once you are done with the projector setup.

Monday Aug 25, 2008

VirtualBox Solaris / OpenSolaris Build 95 / 96

Installed Solaris Nevada build 96 . Then installed VirtualBox on top of it.  While starting VirtualBox from command line it hangs giving out "ERROR: 0 bytes read from child process"  . Found the work around . Follow the below procedure to fix it.

Move the VBoxSVC to VBoxSVC.real

#mv /opt/VirtualBox/VBoxSVC /opt/VirtualBox/VBoxSVC.real

Create a shell script for VBoxSVC and export the LD_NODIRECT and then exec the real VBoxSVC

#cat > /opt/VirtualBox/VBoxSVC

#!/bin/sh
LD_NODIRECT=1
export LD_NODIRECT
exec /opt/VirtualBox/VBoxSVC.real "$@"

End the script and make sure you chmod +x the script 

#chmod +x  /opt/VirtualBox/VBoxSVC

Looks like one could hit this issue with Solaris Nevada Build 95 too.


Thursday Aug 21, 2008

Prozilla download accelerator for Solaris / OpenSolaris

Solaris 10 or OpenSolaris by default ships /usr/sfw/bin/wget tool for downloading.  If you are trying to download largefile then its good to use download accelerator so that it can parallely fetch the file and it would reduce the waiting time considerably . I have ported Prozilla download accelerator for Solaris / OpenSolaris  .

Download x86 version

To install run the following command

#pkgadd -d SFEprozilla-2.0.4.i386.pkg

SPEC file is locate at http://pkgbuild.svn.sourceforge.net/viewvc/pkgbuild/spec-files-extra/trunk/


Monday Aug 18, 2008

Solaris HP Proliant Server installation

Came across query regarding installation of Solaris 10 on HP Proliant Server DL 360 series machines. By default Solaris 10 doesn't ship drivers for HP Smart  Array  Controllers .  So during installation one would encounter disk unable to recognize or missing disk or no disk connected. Follow below procedure for Solaris 10 installation.

\* Download the drivers from
 ftp://ftp.hp.com/pub/softlib2/software1/pubsw-windows/p1220948930/v46783/CPQary3-1.90-solaris10-i386.tar.gz
\* Extract the tar.gz file using below command

# gzcat CPQary3-1.90-solaris10-i386.tar.gz | tar xvf -
\* burn the iso CPQary3.iso which is located under CPQary3-1.90-solaris10-i386 directory by using favorite any of your cd burning software (cdrw, cdrecord, k3b ) . In Solaris one can use cdrw 

#cdrw -i CPQary3.iso

\* Once the driver CD is ready . Now boot up the HP DL server with the Solaris 10 installation media and follow below instruction to get your disk recognized.

-----

a. Boot the Solaris installation to the following menu:

   1.    Solaris Interactive (default)
   2.    Custom JumpStart
   3.    Solaris Interactive Text (Desktop session)
   4.    Solaris Interactive Text (Console session)
   5.    Apply driver updates
   6.    Single user shell

   Enter the number of your choice.

b. Select option 5, "Apply driver updates".

c. At the following prompt:

     Insert media and enter media type:
             Floppy [f], CD/DVD [c] or End [e]

   insert the driver cd,  and choose  "c".  Solaris will extract the
   driver, and the following messages will indicate success:

     extracting software on cd
     installing driver update in the miniroot

d. Following driver application,  Solaris will return  to the  following
   prompt:

     Insert media and enter media type:
             Floppy [f], CD/DVD [c] or End [e]

   Choose "e", and Solaris will  continue with the installation.  Solaris
   will prompt for re-insertion of the Solaris media; complete this  step
   and proceed with the installation.
------

The driver disk support variety of HP Smart  Array  Controllers for Solaris 10
        \*  Smart Array 5300 Controller
        \*  Smart Array 5i Controller
        \*  Smart Array 532 Controller
        \*  Smart Array 5312 Controller
        \*  Smart Array 641 Controller
        \*  Smart Array 642 Controller
        \*  Smart Array 6400 Controller
        \*  Smart Array 6400EM Controller
        \*  Smart Array 6i Controller
        \*  Smart Array P600 Controller
        \*  Smart Array E200 Controller
        \*  Smart Array E200i Controller
        \*  Smart Array E500 Controller
        \*  Smart Array P400 Controller
        \*  Smart Array P400i Controller
        \*  Smart Array P800 Controller

You can upgrade and remove drivers by using pkgadd and pkgrm driver package CPQary3 found in CD .

Thanks for good readme.txt found at CPQary3.iso image. For more detail information checkout the readme.txt found in CD.

Thursday Jul 17, 2008

Solaris Nevada / OpenSolaris Mac book right-click

When you run Solaris on Macbook. Trouble is that the right-click doesn't work . One way to solve is to have USB mouse or you can have a key mapped to right-click so that when ever you press the key it automatically maps the key to right click. To enable this goto Start -> Preferences -> Keyboard Accessibility Preferences . 

click on "Enable Keyboard accessibility features" and then click "Enable Mouse Keys"


We need the scancode of the key to map it to right-click. For identifying scancode you can run Xev utility . Start the terminal and run xev "/usr/openwin/demo/xev" program.  Click on Xev window and press the key which you wanted to map it to right-click, xev will show the scancode for the key . Once you get the scancode you can kill xev.

Sample xev screen:


Now to open your favorite editor and create a file under your home directory ~/ .xmodmap . Put the following entry into it.
-----------
keycode 117 = Pointer_Button3
---------

Save the file and run the command " xmodmap ~/.xmodmap" to activate it.  Now while pressing the key you should be able to see right-click menu. Put the an entry in

Start -> Preferences -> Session

so that "xmodmap" command is executed each time you log into Gnome.  Add entry "/usr/openwin/bin/xmodmap <path>" . Substitute <path> with location of  ".xmodmap" file eg. /export/home/guest/.xmodmap

Tuesday Jun 24, 2008

Solaris Thinkpad T61 Xorg Projector configuration

The default Nvidia driver that is being shipped with Solaris Express/OpenSolaris distro doesn't allow you to switch to 1024x768 resolution for Thinkpad T61. The issue here is most of the LCD projectors loves "1024x768" resolution. So with below workaround you can switch to 1024x768 (note this is experimental). Add the following lines to Nvidia device section in /etc/X11/xorg.conf

--- 

  Option "UseEdidFreqs" "False"
  Option "HorizSync" "DFP-0: 40-70"
  Option "VertRefresh" "DFP-0: 58-62"

 ---

I have attached xorg.conf file for reference. Tested this on Thinkpad T61 which comes with Nvidia Quadro NVS 140M chipset. Special thanks to John.M.Martin for pointing this workaround.

Thursday Feb 21, 2008

Thinkpad T61 Solaris Projector configuration

Here is the xorg.conf.projector.T61.Nvidia projector configuration of Thinkpad T61 for Solaris . Best resolution is "1280x960" for display in case your are using with projector . Note this for the Thinkpad T61 which comes with Nvidia display card. Below is the PCI ID.

 pci bus 0x0001 cardnum 0x00 function 0x00: vendor 0x10de device 0x0429
 nVidia Corporation  Device unknown

Thursday Jan 31, 2008

Thinkpad T61 Solaris

Installed "Solaris Express Developer Edition 1/08 snv_79a X86" on Thinkpad T61 . Here is the list of devices

Wireless doesnot work. Waiting for iwk driver release.

For sound driver use the OSS driver from http://www.4front-tech.com/download.cgi . One issue with OSS driver is that it puts "input-mixer" on high, so its noisy while you boot up. Workaround is to mute while bootup and then set the ossmix after bootup.

#~ossmix connector.int-speaker.input-mix 0

This comes with Nvidia card so compiz-fusion works fine . Compiz-fusion can be downloaded from Erwann's blog 

bash~# scanpci

pci bus 0x0000 cardnum 0x00 function 0x00: vendor 0x8086 device 0x2a00
 Intel Corporation Mobile Memory Controller Hub

pci bus 0x0000 cardnum 0x01 function 0x00: vendor 0x8086 device 0x2a01
 Intel Corporation Mobile PCI Express Root Port

pci bus 0x0000 cardnum 0x19 function 0x00: vendor 0x8086 device 0x1049
 Intel Corporation 82566MM Gigabit Network Connection

pci bus 0x0000 cardnum 0x1a function 0x00: vendor 0x8086 device 0x2834
 Intel Corporation 82801H (ICH8 Family) USB UHCI #4

pci bus 0x0000 cardnum 0x1a function 0x01: vendor 0x8086 device 0x2835
 Intel Corporation 82801H (ICH8 Family) USB UHCI #5

pci bus 0x0000 cardnum 0x1a function 0x07: vendor 0x8086 device 0x283a
 Intel Corporation 82801H (ICH8 Family) USB2 EHCI #2

pci bus 0x0000 cardnum 0x1b function 0x00: vendor 0x8086 device 0x284b
 Intel Corporation 82801H (ICH8 Family) HD Audio Controller

pci bus 0x0000 cardnum 0x1c function 0x00: vendor 0x8086 device 0x283f
 Intel Corporation 82801H (ICH8 Family) PCI Express Port 1

pci bus 0x0000 cardnum 0x1c function 0x01: vendor 0x8086 device 0x2841
 Intel Corporation 82801H (ICH8 Family) PCI Express Port 2

pci bus 0x0000 cardnum 0x1c function 0x02: vendor 0x8086 device 0x2843
 Intel Corporation 82801H (ICH8 Family) PCI Express Port 3

pci bus 0x0000 cardnum 0x1c function 0x03: vendor 0x8086 device 0x2845
 Intel Corporation 82801H (ICH8 Family) PCI Express Port 4

pci bus 0x0000 cardnum 0x1c function 0x04: vendor 0x8086 device 0x2847
 Intel Corporation 82801H (ICH8 Family) PCI Express Port 5

pci bus 0x0000 cardnum 0x1d function 0x00: vendor 0x8086 device 0x2830
 Intel Corporation 82801H (ICH8 Family) USB UHCI #1

pci bus 0x0000 cardnum 0x1d function 0x01: vendor 0x8086 device 0x2831
 Intel Corporation 82801H (ICH8 Family) USB UHCI #2

pci bus 0x0000 cardnum 0x1d function 0x02: vendor 0x8086 device 0x2832
 Intel Corporation 82801H (ICH8 Family) USB UHCI #3

pci bus 0x0000 cardnum 0x1d function 0x07: vendor 0x8086 device 0x2836
 Intel Corporation 82801H (ICH8 Family) USB2 EHCI #1

pci bus 0x0000 cardnum 0x1e function 0x00: vendor 0x8086 device 0x2448
 Intel Corporation 82801 Mobile PCI Bridge

pci bus 0x0000 cardnum 0x1f function 0x00: vendor 0x8086 device 0x2811
 Intel Corporation Mobile LPC Interface Controller

pci bus 0x0000 cardnum 0x1f function 0x01: vendor 0x8086 device 0x2850
 Intel Corporation Mobile IDE Controller

pci bus 0x0000 cardnum 0x1f function 0x02: vendor 0x8086 device 0x2829
 Intel Corporation Mobile SATA AHCI Controller

pci bus 0x0000 cardnum 0x1f function 0x03: vendor 0x8086 device 0x283e
 Intel Corporation 82801H (ICH8 Family) SMBus Controller

pci bus 0x0001 cardnum 0x00 function 0x00: vendor 0x10de device 0x0429
 nVidia Corporation  Device unknown

pci bus 0x0003 cardnum 0x00 function 0x00: vendor 0x8086 device 0x4230
 Intel Corporation  Device unknown

pci bus 0x0015 cardnum 0x00 function 0x00: vendor 0x1180 device 0x0476
 Ricoh Co Ltd RL5c476 II

pci bus 0x0015 cardnum 0x00 function 0x01: vendor 0x1180 device 0x0832
 Ricoh Co Ltd  Device unknown

pci bus 0x0015 cardnum 0x00 function 0x02: vendor 0x1180 device 0x0822
 Ricoh Co Ltd R5C822 SD/SDIO/MMC/MS/MSPro Host Adapter

pci bus 0x0015 cardnum 0x00 function 0x03: vendor 0x1180 device 0x0843
 Ricoh Co Ltd  Device unknown

pci bus 0x0015 cardnum 0x00 function 0x04: vendor 0x1180 device 0x0592
 Ricoh Co Ltd R5C592 Memory Stick Bus Host Adapter

pci bus 0x0015 cardnum 0x00 function 0x05: vendor 0x1180 device 0x0852
 Ricoh Co Ltd xD-Picture Card Controller

Sunday Dec 16, 2007

Playing audio CD in Solaris

Different ways of playing audio CD in Solaris 

 \* Solaris Express and SXDE  by default ships

        - rhythmbox  (/usr/bin/rhythmbox) for organizing and playing audio CD's

       -  sound-juicer (/usr/bin/sound-juicer) for playing audio CD's

If you wish to play audio CD's from Xmms . Follow the below steps .

\*) install Xmms from blastwave.org
\*) start Xmms right click and goto Options -> Preferences

\* ) Select Solaris audio plugin (libSolaris.so)

 

\*) Click on CD Audio Player plugin and then click on Configure button

\*) Make sure you enter the correct information for  Device:  and to a vaild Directory:
    hint: to find the correct CD/DVD drive info you can run "rmformat" command

\*) Insert the CD into drive and click on add files and browse the directory which you have pointed in previous step.

 Enjoy music !!!
 

Wednesday Sep 12, 2007

Projector configuration for intel i945 ( i810 ) driver for Solaris

Recently installed Solaris Express build 70 in couple of laptops which had Intel 945 chipsets . So enabled compiz-fusion on them with the help of Erwann's  Compiz-fusion packages . Next step was to configure display for projector. Below procedure should work for Intel chipsets which uses i945 (i810) driver.  To make laptop projector aware add the following lines in /etc/X11/xorg.conf in Section "Device" . Note that you need to modify BusID for your Laptop / Desktop requirement.

 <snip>
BusID     "PCI:0:2:0"  # modify it for your laptop / desktop
Option    "Clone" "true"
Option    "MonitorLayout" "CRT,LFP"

<snip>
 

Sample section

<code>

Section "Device"
        ### Available Driver options are:-
        ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
        ### <string>: "String", <freq>: "<f> Hz/kHz/MHz"
        ### [arg]: arg optional
        #Option     "NoAccel"                # [<bool>]
        #Option     "SWcursor"               # [<bool>]
        #Option     "ColorKey"               # <i>
        #Option     "CacheLines"             # <i>
        #Option     "Dac6Bit"                # [<bool>]
        #Option     "DRI"                    # [<bool>]
        #Option     "NoDDC"                  # [<bool>]
        #Option     "ShowCache"              # [<bool>]
        #Option     "XvMCSurfaces"           # <i>
        #Option     "PageFlip"               # [<bool>]
    Identifier  "Card0"
    Driver      "i810"
    VendorName  "Intel Corporation"
    BoardName   "Mobile 945GM/GMS/940GML Express Integrated Graphics Controller"
    BusID       "PCI:0:2:0"
    BusID       "PCI:0:2:0"
    Option    "Clone" "true"
    Option  "MonitorLayout" "CRT,LFP"
EndSection

</code>

You can have a look at the sample xorg.conf from Solaris Express build 70 . I have tested with  Intel 945 GM chipset  .

 

Sunday Sep 09, 2007

X.Org 7.3 with DTrace support released

X.Org 7.3 has been released last week. One of the interesting feature is DTrace support for X server. When run under OpenSolaris platform it allows detailed accounting of operations inside the X server. For more information visit Alan Coopersmith's webpage.

 

Thursday Sep 06, 2007

Belenix featured in http://www.isohunt.com

Belenix is featured in main page of http://www.isohunt.com

<<snip from isohunt.com>>

 Since the nice folks over at Genunix.org the makers of Belenix (an OpenSolaris distribution) have decided to use us to distribute their torrents, and their trackers were failing under the load, I've decided to upload their torrent to torrentbox.com with us listed as an additional tracker, hopefully this will help out the folks at tuxdistro.com.

Anyway, I've been nice enough to 'donate' one of our machines (a02.ext.isohunt.com) as a seed box and one of my personal machines as well, let's hope that it helps get this distro out into the public eye.

More info  http://www.isohunt.com/forum/viewtopic.php?p=266395&highlight=#266395

<<snip>> 

Sunday Jul 15, 2007

Mount NTFS / Ext2 / Ext3 / FAT 16 / FAT 32 in Solaris

I often get queries about mounting NTFS / Ext2 / Ext3 /  FAT 16 /  FAT 32 partions in Solaris .  Follow the below steps . Note that its only read-only support for NTFS / Ext2 / Ext3 .

 \* Download packages
FSWpart
FSWfsmisc

   Note these are packages for x86 Solaris .

 \* unzip the packages and install it

root~#gzcat FSWpart.tar.gz | tar xvf -

root~#gzcat FSWfsmisc.tar.gz | tar xvf -

root~#pkgadd -d . FSWpart

root~#pkgadd -d . FSWfsmisc

 \* Now run the prtpart tool

root~#/usr/sbin/prtpart

It would result in following output
root~#/usr/sbin/prtpart


Fdisk information for device /dev/rdsk/c1d0p0

Block Size : 512 bytes
Controller : ide
Disk       : cmdk
Capacity   : 74 GB

#  start block  # nblocks    startCylSecHd endCylSecHd   OSType
 1: 0000000063   0006152832     0/ 1/ 1    7e/7f/fe      Diagnostic
 2: 0006152895   0025173855    7f/41/ 0    ff/ff/fe      WIN95 FAT32(LBA)
 3: 0031328640   0052432128    ff/ff/fe    ff/ff/fe      Solaris x86
 4: 0083760830   0072535555    ff/ff/fe    ff/ff/fe      DOS Extended

  #  start block  # nblocks    startCylSecHd endCylSecHd   OSType
   5: 0000000001   0031407012    ff/ff/fe    ff/ff/fe      Linux native
   0: 0031407013   0001994202    ff/ff/fe    ff/ff/fe      DOS Extended

    #  start block  # nblocks    startCylSecHd endCylSecHd   OSType
     6: 0000000063   0001994139    ff/ff/fe    ff/ff/fe      Linux swap
     0: 0033401215   0039134340    ff/ff/fe    ff/ff/fe      DOS Extended

      #  start block  # nblocks    startCylSecHd endCylSecHd   OSType
       7: 0000000063   0039134277    ff/ff/fe    ff/ff/fe      WIN95 FAT32(Upto 2047GB)


Now note the disk id. In the above example its "/dev/rdsk/c1d0p0"

 Now run

root~#/usr/sbin/prtpart /dev/rdsk/c1d0p0 -ldevs

Fdisk information for device /dev/rdsk/c1d0p0

\*\* NOTE \*\*
/dev/dsk/c1d0p0      - Physical device referring to entire physical disk
/dev/dsk/c1d0p1 - p4 - Physical devices referring to the 4 primary partitions
/dev/dsk/c1d0p5 ...  - Virtual devices referring to logical partitions

Virtual device names can be used to access EXT2 and NTFS on logical partitions

/dev/dsk/c1d0p1 Diagnostic
/dev/dsk/c1d0p2 WIN95 FAT32(LBA)
/dev/dsk/c1d0p3 Solaris x86
/dev/dsk/c1d0p4 DOS Extended
/dev/dsk/c1d0p5 Linux native
/dev/dsk/c1d0p6 Linux swap
/dev/dsk/c1d0p7 WIN95 FAT32(Upto 2047GB)

The above command scan you hard-disk and displays all available filesystems. Note the required filesystems to be mounted.

To mount NTFS partition use

root~#mount -F ntfs  /dev/dsk/c1d0p<number> /mnt/windows

To mount FAT 16 /  FAT 32 partition use

root~#mount -F pcfs  /dev/dsk/c1d0p<number> /mnt/windows

if the above command fails you can try the below option

root~#prtpart /dev/dsk/c1d0p0 -fat

the above command should list the available PCFS / FAT partitions in colon notation, then use the same for mounting (eg)

root~#mount -F pcfs  /dev/dsk/c1d0p0:d /mnt/windows

To mount Ext2 / Ext3 partitions use

root~#mount -F ext2fs /dev/dsk/c1d0p<number> /mnt/linux

To unmount a partition use "umount <directory>"

root~#umount /mnt/linux

About

pradhap

Search

Categories
Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today