Video Modes

ps3fb has the dimension 720x480 when connected to an NTSC TV monitor. But by default it takes 10% margin to each side to handle overscan, so fbdev reports 576x384 to userland. In this mode, Debian's Xorg fbdev driver cannot correctly display the screen because of the line pitch (pixels per line) mismatch.

ps3fb have an ioctl interface to change the video mode and SCEI provides a utility named ps3videomode to issue the ioctls. The source is in ps3pf_utils-1.0.9-2.src.rpm in CELL-Linux-CL_20061110-SRCCD.iso.

% echo "%_topdir /home/yaegashi/RPM" >.rpmmacros
% rpm -i /mnt/ps3pf_utils-1.0.9-2.src.rpm
% tar -xjvf RPM/SOURCES/ps3pf_utils-1.0.9.tar.bz2
% cd ps3pf_utils-1.0.9
% make

yaegashi@ps3% ./ps3videomode --help
Usage:
  ps3videomode [options]

Options:
  --help,  -h          print this message
  --video, -v <ID>     set video mode ID
  --full,  -f          use full screen mode
  --dither,-d          use dither ON mode

Video mode ID:
  0:auto mode
  YUV 60Hz  1:480i  2:480p  3:720p  4:1080i  5:1080p
  YUV 50Hz  6:576i  7:576p  8:720p  9:1080i 10:1080p
  RGB 60Hz 33:480i 34:480p 35:720p 36:1080i 37:1080p
  RGB 50Hz 38:576i 39:576p 40:720p 41:1080i 42:1080p
  VESA     11:WXGA 12:SXGA 13:WUXGA

  full screen mode: <video mode ID> + 128
  dither ON mode  : <video mode ID> + 2048

Example:
  ps3videomode -v 3 -f    720p 60Hz with full screen mode.
  ps3videomode -v 131     Same as above.

If no arguments are given, ps3videomode displays the current video mode.
yaegashi@ps3% sudo ./ps3videomode -v 1 -f

With full screen mode, you can get Xorg to display the screen correctly.

HogeMoin: PS3/Debian/VideoModes (last edited 2006-12-10 03:47:49 by TakeshiYaegashi)